fix(wallet): bring back chat settings panel that was missing
This commit is contained in:
parent
4acebbe799
commit
37251afe60
|
@ -74,10 +74,6 @@ QtObject:
|
|||
proc getEtherscanAddressLink*(self: View): string {.slot.} =
|
||||
return self.etherscanAddressLink
|
||||
|
||||
proc usernameConfirmed(self: View, username: string) {.signal.}
|
||||
proc emitUsernameConfirmedSignal*(self: View, ensUsername: string) =
|
||||
self.usernameConfirmed(ensUsername)
|
||||
|
||||
proc transactionCompleted(self: View, success: bool, txHash: string, username: string, trxType: string) {.signal.}
|
||||
proc emitTransactionCompletedSignal*(self: View, success: bool, txHash: string, username: string, trxType: string) =
|
||||
self.transactionCompleted(success, txHash, username, trxType)
|
||||
|
|
|
@ -36,21 +36,13 @@ Item {
|
|||
|
||||
property int numOfPendingEnsUsernames: 0
|
||||
readonly property bool hasConfirmedEnsUsernames: root.ensUsernamesStore.ensUsernamesModel.count > 0
|
||||
&& numOfPendingEnsUsernames !== root.ensUsernamesStore.ensUsernamesModel.count
|
||||
|| numOfPendingEnsUsernames > 0
|
||||
|
||||
function updateNumberOfPendingEnsUsernames() {
|
||||
numOfPendingEnsUsernames = root.ensUsernamesStore.numOfPendingEnsUsernames()
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: root.ensUsernamesStore.ensUsernamesModule
|
||||
function onUsernameConfirmed(username: string) {
|
||||
d.updateNumberOfPendingEnsUsernames()
|
||||
chatSettingsLabel.visible = true
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
anchors.top: parent.top
|
||||
width: profileContentWidth
|
||||
|
|
Loading…
Reference in New Issue