tweak: hide the options icon when the default key-pair has only 1 account or less
This commit is contained in:
parent
c16ab0d2de
commit
2648b2bc23
|
@ -47,8 +47,9 @@
|
|||
:accessibility-label :title}
|
||||
[text/text {:weight :semi-bold}
|
||||
(if (= type :default-keypair) (keypair-string full-name) full-name)]
|
||||
(if (= action :selector)
|
||||
[selectors/view
|
||||
(case action
|
||||
:none nil
|
||||
:selector [selectors/view
|
||||
{:type :radio
|
||||
:checked? selected?
|
||||
:blur? blur?
|
||||
|
|
|
@ -69,7 +69,10 @@
|
|||
{:blur? true
|
||||
:status-indicator false
|
||||
:stored :on-device
|
||||
:action :options
|
||||
:action (if (and default-keypair?
|
||||
(<= 1 (count accounts)))
|
||||
:none
|
||||
:options)
|
||||
:accounts accounts
|
||||
:customization-color customization-color
|
||||
:container-style style/keypair-container-style
|
||||
|
|
Loading…
Reference in New Issue