fix(wallet): bring back chat settings panel that was missing

This commit is contained in:
Sale Djenic 2024-12-12 22:37:07 +01:00 committed by saledjenic
parent 4acebbe799
commit 37251afe60
2 changed files with 1 additions and 13 deletions

View File

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

View File

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