status-desktop/ui/imports/shared/popups/ProfileDialog.qml

62 lines
1.8 KiB
QML
Raw Normal View History

2022-09-27 21:26:26 +00:00
import QtQuick 2.14
import QtQuick.Controls 2.15
2022-09-27 21:26:26 +00:00
import StatusQ.Popups.Dialog 0.1
import shared.views 1.0
import shared.controls 1.0
2022-09-27 21:26:26 +00:00
StatusDialog {
id: root
property var parentPopup
property alias publicKey: profileView.publicKey
2022-09-27 21:26:26 +00:00
property alias profileStore: profileView.profileStore
property alias contactsStore: profileView.contactsStore
property alias sendToAccountEnabled: profileView.sendToAccountEnabled
2022-09-27 21:26:26 +00:00
property alias showcaseCommunitiesModel: profileView.showcaseCommunitiesModel
property alias showcaseAccountsModel: profileView.showcaseAccountsModel
property alias showcaseCollectiblesModel: profileView.showcaseCollectiblesModel
property alias showcaseSocialLinksModel: profileView.showcaseSocialLinksModel
property alias showcaseAssetsModel: profileView.showcaseAssetsModel
property alias assetsModel: profileView.assetsModel
property alias collectiblesModel: profileView.collectiblesModel
property alias dirtyValues: profileView.dirtyValues
property alias dirty: profileView.dirty
implicitHeight: implicitContentHeight + (header.visible ? header.height : 0)
2022-09-27 21:26:26 +00:00
width: 640
padding: 0
footer: null
background: null
header: Item {
id: headerItem
height: selector.height + 20
visible: profileView.isCurrentUser
TapHandler {
enabled: root.closePolicy != Popup.NoAutoClose
onTapped: {
root.close()
}
}
ProfilePerspectiveSelector {
id: selector
showcaseVisibility: profileView.showcaseMaxVisibility
onVisibilitySelected: (visibility) => profileView.showcaseMaxVisibility = visibility
}
}
2022-09-27 21:26:26 +00:00
contentItem: ProfileDialogView {
id: profileView
2022-09-27 21:26:26 +00:00
onCloseRequested: root.close()
}
}