mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
✨ Enhance confirm dialog cancel options
This commit is contained in:
parent
ef0126a6ae
commit
fcbcc6de95
3 changed files with 5 additions and 5 deletions
|
@ -67,7 +67,7 @@
|
|||
|
||||
[:div.modal-footer
|
||||
[:div.action-buttons
|
||||
(when-not (empty? cancel-label)
|
||||
(when-not (= cancel-label :omit)
|
||||
[:input.cancel-button
|
||||
{:type "button"
|
||||
:value cancel-label
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
:message ""
|
||||
:title (t locale "modals.add-shared-confirm.message" (:name file))
|
||||
:hint (t locale "modals.add-shared-confirm.hint")
|
||||
:cancel-label ""
|
||||
:cancel-label :omit
|
||||
:accept-label (t locale "modals.add-shared-confirm.accept")
|
||||
:accept-style :primary
|
||||
:on-accept add-shared}))))
|
||||
|
@ -128,7 +128,7 @@
|
|||
:message ""
|
||||
:title (t locale "modals.remove-shared-confirm.message" (:name file))
|
||||
:hint (t locale "modals.remove-shared-confirm.hint")
|
||||
:cancel-label ""
|
||||
:cancel-label :omit
|
||||
:accept-label (t locale "modals.remove-shared-confirm.accept")
|
||||
:on-accept del-shared}))))
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
:message ""
|
||||
:title (t locale "modals.add-shared-confirm.message" (:name file))
|
||||
:hint (t locale "modals.add-shared-confirm.hint")
|
||||
:cancel-label ""
|
||||
:cancel-label :omit
|
||||
:accept-label (t locale "modals.add-shared-confirm.accept")
|
||||
:accept-style :primary
|
||||
:on-accept add-shared-fn})))
|
||||
|
@ -123,7 +123,7 @@
|
|||
:message ""
|
||||
:title (t locale "modals.remove-shared-confirm.message" (:name file))
|
||||
:hint (t locale "modals.remove-shared-confirm.hint")
|
||||
:cancel-label ""
|
||||
:cancel-label :omit
|
||||
:accept-label (t locale "modals.remove-shared-confirm.accept")
|
||||
:on-accept del-shared-fn})))
|
||||
|
||||
|
|
Loading…
Reference in a new issue