fix(StatusStickerMarket): do not confirm enabling wallet

wallet is already enabled by default for users and there's no way to
enable it if it gets disabled by using an env var
This commit is contained in:
Lukáš Tinkl 2023-04-12 12:33:40 +02:00 committed by Lukáš Tinkl
parent 8d322092cf
commit 0cd7e3650a

View File

@ -229,32 +229,11 @@ Item {
onCancelClicked: root.cancelClicked(packId)
onUpdateClicked: root.updateClicked(packId)
onBuyClicked: {
if (!SharedStores.RootStore.isWalletEnabled) {
confirmationPopup.open()
return
}
Global.openPopup(stickerPackPurchaseModal)
root.buyClicked(packId)
}
}
}
ConfirmationDialog {
id: confirmationPopup
showCancelButton: true
confirmationText: qsTr("This feature is experimental and is meant for testing purposes by core contributors and the community. It's not meant for real use and makes no claims of security or integrity of funds or data. Use at your own risk.")
confirmButtonLabel: qsTr("I understand")
onConfirmButtonClicked: {
SharedStores.RootStore.enableWallet();
close()
Global.openPopup(stickerPackPurchaseModal)
root.buyClicked(packId)
}
onCancelButtonClicked: {
close()
}
}
}
}
}