mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-18 01:27:25 +00:00
fix(Mint): No redirect to Tokens screen when minting a token
Fixes #11731
This commit is contained in:
parent
d8c9802d77
commit
33c9771d3b
@ -94,8 +94,7 @@ StackView {
|
||||
resetNavigation()
|
||||
|
||||
if(root.isAdminOnly) {
|
||||
// Admins can only see the initial tokens page. They cannot mint
|
||||
root.push(mintedTokensViewComponent, StackView.Immediate)
|
||||
// Admins can only see the initial tokens page. They cannot mint. Initial view.
|
||||
return
|
||||
}
|
||||
|
||||
@ -107,8 +106,7 @@ StackView {
|
||||
}
|
||||
|
||||
if(root.ownerOrTMasterTokenItemsExist) {
|
||||
// Owner and TMaster tokens deployment action has been started at least ones but still without success
|
||||
root.push(mintedTokensViewComponent, StackView.Immediate)
|
||||
// Owner and TMaster tokens deployment action has been started at least ones but still without success. Initial view.
|
||||
return
|
||||
}
|
||||
|
||||
@ -117,9 +115,6 @@ StackView {
|
||||
root.push(ownerTokenViewComponent, StackView.Immediate)
|
||||
return
|
||||
}
|
||||
|
||||
// Any other case, initial view
|
||||
root.push(mintedTokensViewComponent, StackView.Immediate)
|
||||
}
|
||||
|
||||
QtObject {
|
||||
@ -140,19 +135,7 @@ StackView {
|
||||
|
||||
}
|
||||
|
||||
initialItem: mintedTokensViewComponent
|
||||
|
||||
Component {
|
||||
id: tokenObjectComponent
|
||||
|
||||
TokenObject {}
|
||||
}
|
||||
|
||||
// Mint tokens possible view contents:
|
||||
Component {
|
||||
id: mintedTokensViewComponent
|
||||
|
||||
SettingsPage {
|
||||
initialItem: SettingsPage {
|
||||
implicitWidth: 0
|
||||
title: qsTr("Tokens")
|
||||
|
||||
@ -203,8 +186,14 @@ StackView {
|
||||
onRetryOwnerTokenClicked: d.retryPrivilegedToken(tokenKey, chainId, accountName, accountAddress)
|
||||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: tokenObjectComponent
|
||||
|
||||
TokenObject {}
|
||||
}
|
||||
|
||||
// Mint tokens possible view contents:
|
||||
Component {
|
||||
id: ownerTokenViewComponent
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user