mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-25 14:00:00 +00:00
parent
863c4f5d7a
commit
05c8373905
@ -152,6 +152,7 @@ method load*(self: Module) =
|
|||||||
let args = AccountSaved(e)
|
let args = AccountSaved(e)
|
||||||
self.setTotalCurrencyBalance()
|
self.setTotalCurrencyBalance()
|
||||||
self.filter.setAddress(args.account.address)
|
self.filter.setAddress(args.account.address)
|
||||||
|
self.view.showToastAccountAdded(args.account.name)
|
||||||
self.notifyFilterChanged()
|
self.notifyFilterChanged()
|
||||||
self.events.on(SIGNAL_WALLET_ACCOUNT_DELETED) do(e:Args):
|
self.events.on(SIGNAL_WALLET_ACCOUNT_DELETED) do(e:Args):
|
||||||
let args = AccountDeleted(e)
|
let args = AccountDeleted(e)
|
||||||
|
@ -28,6 +28,8 @@ QtObject:
|
|||||||
proc load*(self: View) =
|
proc load*(self: View) =
|
||||||
self.delegate.viewDidLoad()
|
self.delegate.viewDidLoad()
|
||||||
|
|
||||||
|
proc showToastAccountAdded*(self: View, name: string) {.signal.}
|
||||||
|
|
||||||
proc currentCurrencyChanged*(self: View) {.signal.}
|
proc currentCurrencyChanged*(self: View) {.signal.}
|
||||||
|
|
||||||
proc updateCurrency*(self: View, currency: string) {.slot.} =
|
proc updateCurrency*(self: View, currency: string) {.slot.} =
|
||||||
|
@ -137,4 +137,18 @@ Item {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: RootStore.walletSectionInst
|
||||||
|
function onShowToastAccountAdded(name: string) {
|
||||||
|
Global.displayToastMessage(
|
||||||
|
qsTr("\"%1\" successfuly added").arg(name),
|
||||||
|
"",
|
||||||
|
"check-circle",
|
||||||
|
false,
|
||||||
|
Constants.ephemeralNotificationType.success,
|
||||||
|
""
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,7 @@ QtObject {
|
|||||||
property var accountSensitiveSettings: localAccountSensitiveSettings
|
property var accountSensitiveSettings: localAccountSensitiveSettings
|
||||||
property bool hideSignPhraseModal: accountSensitiveSettings.hideSignPhraseModal
|
property bool hideSignPhraseModal: accountSensitiveSettings.hideSignPhraseModal
|
||||||
|
|
||||||
|
property var walletSectionInst: walletSection
|
||||||
property var totalCurrencyBalance: walletSection.totalCurrencyBalance
|
property var totalCurrencyBalance: walletSection.totalCurrencyBalance
|
||||||
property string signingPhrase: walletSection.signingPhrase
|
property string signingPhrase: walletSection.signingPhrase
|
||||||
property string mnemonicBackedUp: walletSection.isMnemonicBackedUp
|
property string mnemonicBackedUp: walletSection.isMnemonicBackedUp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user