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:
Noelia 2023-05-09 08:49:51 +02:00 committed by Noelia
parent 5ac0547238
commit d789ceefed
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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