-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(@wallet): 5 chars min account keypair name #13414
Conversation
Jenkins Builds
|
ui/imports/shared/popups/addaccount/states/EnterKeypairName.qml
Outdated
Show resolved
Hide resolved
@@ -88,6 +88,13 @@ Item { | |||
root.store.addAccountModule.newKeyPairName = text | |||
} | |||
|
|||
validators: [ | |||
StatusMinLengthValidator { | |||
errorMessage: qsTr("Keypair name must be at least %1 characters").arg(Constants.addAccountPopup.keyPairAccountNameMinLength) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the amount of repetition, extract the whole Validator somewhere? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd vote for a AccountNameInput and KeypairNameInput.
Many other things are repeated
If you agree i ll create the issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go after checking @caybro's recommendations
ee6c712
to
ac44483
Compare
fixes #13384