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:
parent
daa264c366
commit
de2c421b5e
|
@ -182,6 +182,6 @@ method authenticateUser*(self: Module) =
|
||||||
|
|
||||||
method onUserAuthenticated*(self: Module, password: string) =
|
method onUserAuthenticated*(self: Module, password: string) =
|
||||||
if password.len > 0:
|
if password.len > 0:
|
||||||
self.view.userAuthenticaionSuccess(password)
|
self.view.userAuthenticationSuccess(password)
|
||||||
else:
|
else:
|
||||||
self.view.userAuthentiactionFail()
|
self.view.userAuthentiactionFail()
|
||||||
|
|
|
@ -277,8 +277,8 @@ QtObject:
|
||||||
|
|
||||||
proc validSeedPhrase*(self: View, value: string): bool {.slot.} =
|
proc validSeedPhrase*(self: View, value: string): bool {.slot.} =
|
||||||
return self.delegate.validSeedPhrase(value)
|
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 userAuthentiactionFail*(self: View) {.signal.}
|
||||||
|
|
||||||
proc authenticateUser*(self: View) {.slot.} =
|
proc authenticateUser*(self: View) {.slot.} =
|
||||||
|
|
|
@ -42,7 +42,7 @@ StatusModal {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: walletSectionAccounts
|
target: walletSectionAccounts
|
||||||
onUserAuthenticaionSuccess: {
|
onUserAuthenticationSuccess: {
|
||||||
validationError.text = ""
|
validationError.text = ""
|
||||||
d.password = password
|
d.password = password
|
||||||
d.getDerivedAddressList()
|
d.getDerivedAddressList()
|
||||||
|
@ -189,7 +189,6 @@ StatusModal {
|
||||||
input.isIconSelectable: true
|
input.isIconSelectable: true
|
||||||
input.asset.color: colorSelectionGrid.selectedColor ? colorSelectionGrid.selectedColor : Theme.palette.directColor1
|
input.asset.color: colorSelectionGrid.selectedColor ? colorSelectionGrid.selectedColor : Theme.palette.directColor1
|
||||||
input.leftPadding: Style.current.padding
|
input.leftPadding: Style.current.padding
|
||||||
enabled: !d.authenticationNeeded
|
|
||||||
onIconClicked: {
|
onIconClicked: {
|
||||||
root.emojiPopup.open()
|
root.emojiPopup.open()
|
||||||
root.emojiPopup.emojiSize = StatusQUtils.Emoji.size.verySmall
|
root.emojiPopup.emojiSize = StatusQUtils.Emoji.size.verySmall
|
||||||
|
@ -215,7 +214,6 @@ StatusModal {
|
||||||
StatusColorSelectorGrid {
|
StatusColorSelectorGrid {
|
||||||
id: colorSelectionGrid
|
id: colorSelectionGrid
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
enabled: !d.authenticationNeeded
|
|
||||||
titleText: qsTr("color").toUpperCase()
|
titleText: qsTr("color").toUpperCase()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue