fix(Wallet): allow to edit name and color for a new account before authentication

There is no good reason to keep user entering information before authenticating

Also fix typo

Fixes: #7714
This commit is contained in:
Stefan 2022-10-05 14:43:57 +03:00 committed by Stefan Dunca
parent daa264c366
commit de2c421b5e
3 changed files with 4 additions and 6 deletions

View File

@ -182,6 +182,6 @@ method authenticateUser*(self: Module) =
method onUserAuthenticated*(self: Module, password: string) =
if password.len > 0:
self.view.userAuthenticaionSuccess(password)
self.view.userAuthenticationSuccess(password)
else:
self.view.userAuthentiactionFail()

View File

@ -277,8 +277,8 @@ QtObject:
proc validSeedPhrase*(self: View, value: string): bool {.slot.} =
return self.delegate.validSeedPhrase(value)
proc userAuthenticaionSuccess*(self: View, password: string) {.signal.}
proc userAuthenticationSuccess*(self: View, password: string) {.signal.}
proc userAuthentiactionFail*(self: View) {.signal.}
proc authenticateUser*(self: View) {.slot.} =

View File

@ -42,7 +42,7 @@ StatusModal {
Connections {
target: walletSectionAccounts
onUserAuthenticaionSuccess: {
onUserAuthenticationSuccess: {
validationError.text = ""
d.password = password
d.getDerivedAddressList()
@ -189,7 +189,6 @@ StatusModal {
input.isIconSelectable: true
input.asset.color: colorSelectionGrid.selectedColor ? colorSelectionGrid.selectedColor : Theme.palette.directColor1
input.leftPadding: Style.current.padding
enabled: !d.authenticationNeeded
onIconClicked: {
root.emojiPopup.open()
root.emojiPopup.emojiSize = StatusQUtils.Emoji.size.verySmall
@ -215,7 +214,6 @@ StatusModal {
StatusColorSelectorGrid {
id: colorSelectionGrid
anchors.horizontalCenter: parent.horizontalCenter
enabled: !d.authenticationNeeded
titleText: qsTr("color").toUpperCase()
}