Disabled next in password screen
Fixes #10965 Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
parent
4f135292a5
commit
6fcb426a71
|
@ -27,7 +27,7 @@
|
||||||
valid-form (confirm-password @password @confirm)
|
valid-form (confirm-password @password @confirm)
|
||||||
on-submit (fn []
|
on-submit (fn []
|
||||||
(when (not processing?)
|
(when (not processing?)
|
||||||
(if valid-form
|
(if (and valid-password valid-form)
|
||||||
(do (reset! show-error false)
|
(do (reset! show-error false)
|
||||||
(re-frame/dispatch [forward-action {:key-code @password}]))
|
(re-frame/dispatch [forward-action {:key-code @password}]))
|
||||||
(reset! show-error true))))]
|
(reset! show-error true))))]
|
||||||
|
@ -106,6 +106,7 @@
|
||||||
:accessibility-label :onboarding-next-button
|
:accessibility-label :onboarding-next-button
|
||||||
:disabled (or (nil? @confirm)
|
:disabled (or (nil? @confirm)
|
||||||
(not valid-password)
|
(not valid-password)
|
||||||
|
(not valid-form)
|
||||||
processing?)
|
processing?)
|
||||||
:type :secondary
|
:type :secondary
|
||||||
:after :main-icons/next}
|
:after :main-icons/next}
|
||||||
|
|
Loading…
Reference in New Issue