feat(MintToken): Remote self-destruct footer option hidden if the minted collectible doesn't have self-destruct property set
Added property binded with model info and with needed footer visible property option. Closes #10579
This commit is contained in:
parent
5ac0547238
commit
d789ceefed
|
@ -91,6 +91,7 @@ SettingsPageLayout {
|
|||
|
||||
property var tokenOwnersModel
|
||||
property var selfDestructTokensList
|
||||
property bool selfDestruct
|
||||
|
||||
readonly property var initialItem: (root.tokensModel && root.tokensModel.count > 0) ? mintedTokensView : welcomeView
|
||||
onInitialItemChanged: updateInitialStackView()
|
||||
|
@ -275,7 +276,7 @@ SettingsPageLayout {
|
|||
|
||||
airdropEnabled: true
|
||||
retailEnabled: false
|
||||
remotelySelfDestructEnabled: true
|
||||
remotelySelfDestructVisible: d.selfDestruct
|
||||
burnEnabled: false
|
||||
|
||||
onAirdropClicked: d.airdropClicked()
|
||||
|
@ -372,6 +373,12 @@ SettingsPageLayout {
|
|||
value: view.tokenOwnersModel
|
||||
}
|
||||
|
||||
Binding {
|
||||
target: d
|
||||
property: "selfDestruct"
|
||||
value: view.selfDestruct
|
||||
}
|
||||
|
||||
Instantiator {
|
||||
id: instantiator
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ Control {
|
|||
|
||||
property alias airdropEnabled: airdropButton.enabled
|
||||
property alias retailEnabled: retailButton.enabled
|
||||
property alias remotelySelfDestructEnabled: remotelySelfDestructButton.enabled
|
||||
property alias remotelySelfDestructVisible: remotelySelfDestructButton.visible
|
||||
property alias burnEnabled: burnButton.enabled
|
||||
|
||||
signal airdropClicked
|
||||
|
|
Loading…
Reference in New Issue