2023-07-04 15:11:41 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
|
|
|
import StatusQ.Popups.Dialog 0.1
|
|
|
|
|
|
|
|
import AppLayouts.Communities.panels 1.0
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
StatusDialog {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property bool isEditMode
|
|
|
|
|
2023-08-22 18:04:58 +00:00
|
|
|
property bool requirementsCheckPending
|
|
|
|
|
2023-07-04 15:11:41 +00:00
|
|
|
required property string communityName
|
|
|
|
required property string communityIcon
|
|
|
|
property int loginType: Constants.LoginType.Password
|
|
|
|
|
|
|
|
required property var walletAccountsModel // name, address, emoji, colorId, assets
|
|
|
|
required property var permissionsModel // id, key, permissionType, holdingsListModel, channelsListModel, isPrivate, tokenCriteriaMet
|
|
|
|
required property var assetsModel
|
|
|
|
required property var collectiblesModel
|
|
|
|
|
2023-08-02 17:39:42 +00:00
|
|
|
property alias selectedSharedAddresses: panel.selectedSharedAddresses
|
|
|
|
property alias selectedAirdropAddress: panel.selectedAirdropAddress
|
2023-07-04 15:11:41 +00:00
|
|
|
|
|
|
|
signal shareSelectedAddressesClicked(string airdropAddress, var sharedAddresses)
|
2023-08-02 17:39:42 +00:00
|
|
|
signal saveSelectedAddressesClicked(string airdropAddress, var sharedAddresses)
|
2023-08-21 18:54:57 +00:00
|
|
|
signal sharedAddressesChanged(string airdropAddress, var sharedAddresses)
|
2023-07-04 15:11:41 +00:00
|
|
|
|
2023-08-24 20:36:38 +00:00
|
|
|
function setOldSharedAddresses(oldSharedAddresses) {
|
|
|
|
panel.setOldSharedAddresses(oldSharedAddresses)
|
|
|
|
}
|
|
|
|
|
|
|
|
function setOldAirdropAddress(oldAirdropAddress) {
|
|
|
|
panel.setOldAirdropAddress(oldAirdropAddress)
|
|
|
|
}
|
|
|
|
|
2023-07-04 15:11:41 +00:00
|
|
|
title: panel.title
|
|
|
|
implicitWidth: 640 // by design
|
|
|
|
padding: 0
|
|
|
|
|
|
|
|
contentItem: SharedAddressesPanel {
|
|
|
|
id: panel
|
|
|
|
isEditMode: root.isEditMode
|
2023-08-22 18:04:58 +00:00
|
|
|
requirementsCheckPending: root.requirementsCheckPending
|
2023-07-04 15:11:41 +00:00
|
|
|
communityName: root.communityName
|
|
|
|
communityIcon: root.communityIcon
|
|
|
|
loginType: root.loginType
|
|
|
|
walletAccountsModel: root.walletAccountsModel
|
|
|
|
permissionsModel: root.permissionsModel
|
|
|
|
assetsModel: root.assetsModel
|
|
|
|
collectiblesModel: root.collectiblesModel
|
|
|
|
onShareSelectedAddressesClicked: root.shareSelectedAddressesClicked(airdropAddress, sharedAddresses)
|
2023-08-02 17:39:42 +00:00
|
|
|
onSaveSelectedAddressesClicked: root.saveSelectedAddressesClicked(airdropAddress, sharedAddresses)
|
2023-08-21 18:54:57 +00:00
|
|
|
onSharedAddressesChanged: {
|
|
|
|
root.sharedAddressesChanged(airdropAddress, sharedAddresses)
|
|
|
|
}
|
2023-07-04 15:11:41 +00:00
|
|
|
onClose: root.close()
|
|
|
|
}
|
|
|
|
|
|
|
|
footer: StatusDialogFooter {
|
|
|
|
spacing: Style.current.padding
|
|
|
|
rightButtons: panel.buttons
|
|
|
|
}
|
|
|
|
}
|