fix(ens): Various ENS-related UI fixes (#10492)
This commit is contained in:
parent
abf58b008f
commit
7dfd13ca77
|
@ -6,7 +6,7 @@ password = input()
|
|||
|
||||
hasher = sha3.keccak_256()
|
||||
hasher.update(password.encode())
|
||||
hash = '0x' + hasher.hexdigest().upper()
|
||||
hash = '0x' + hasher.hexdigest()
|
||||
pyperclip.copy(hash)
|
||||
|
||||
print(f'Hash: {hash} is copied to clipboard')
|
||||
print(f'Hash: {hash} is copied to clipboard')
|
||||
|
|
|
@ -143,7 +143,11 @@ QtObject:
|
|||
|
||||
var response: JsonNode
|
||||
try:
|
||||
response = status_ens.getEnsUsernames().result
|
||||
let rpcResponse = status_ens.getEnsUsernames()
|
||||
if rpcResponse.error != nil:
|
||||
error "failed to get ens usernames", procName="getAllMyEnsUsernames", error = $rpcResponse.error
|
||||
return
|
||||
response = rpcResponse.result
|
||||
except Exception as e:
|
||||
error "error occurred", procName="getAllMyEnsUsernames", msg = e.msg
|
||||
return
|
||||
|
|
|
@ -82,9 +82,7 @@ StatusSectionLayout {
|
|||
|
||||
root.store.backButtonName = ""
|
||||
|
||||
if (currentIndex === Constants.settingsSubsection.ensUsernames) {
|
||||
ensContainer.item.goToStart()
|
||||
} else if (currentIndex === Constants.settingsSubsection.contacts) {
|
||||
if (currentIndex === Constants.settingsSubsection.contacts) {
|
||||
root.store.backButtonName = root.store.getNameForSubsection(Constants.settingsSubsection.messaging)
|
||||
} else if (currentIndex === Constants.settingsSubsection.wallet) {
|
||||
walletView.item.resetStack()
|
||||
|
|
|
@ -230,6 +230,7 @@ Item {
|
|||
amISender: false
|
||||
sender.displayName: root.ensUsernamesStore.preferredUsername
|
||||
sender.profileImage.assetSettings.isImage: true
|
||||
sender.profileImage.assetSettings.color: Utils.colorForPubkey(root.ensUsernamesStore.pubkey)
|
||||
sender.profileImage.name: root.ensUsernamesStore.icon
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,26 +31,19 @@ Item {
|
|||
signal goToWelcome();
|
||||
signal goToList();
|
||||
|
||||
function goToStart(){
|
||||
if(ensView.ensUsernamesStore.ensUsernamesModel.count > 0){
|
||||
goToList();
|
||||
} else {
|
||||
goToWelcome();
|
||||
}
|
||||
}
|
||||
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
clip: true
|
||||
|
||||
DSM.StateMachine {
|
||||
id: stateMachine
|
||||
initialState: welcomeState
|
||||
initialState: ensView.ensUsernamesStore.ensUsernamesModel.count > 0 ? listState : welcomeState
|
||||
running: true
|
||||
|
||||
DSM.State {
|
||||
id: welcomeState
|
||||
onEntered: loader.sourceComponent = welcome
|
||||
|
||||
DSM.SignalTransition {
|
||||
targetState: searchState
|
||||
signal: next
|
||||
|
|
|
@ -40,7 +40,7 @@ Item {
|
|||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
fillMode: Image.PreserveAspectFit
|
||||
source: Style.png("ens-header-" + Style.current.name + "@2x")
|
||||
source: Style.png("ens/ens-header-" + Style.current.name + "@2x")
|
||||
cache: false
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 82 KiB |
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
Loading…
Reference in New Issue