mirror of
https://github.com/penpot/penpot.git
synced 2026-09-09 05:28:43 +00:00
✨ Enhance confirm dialog cancel options
This commit is contained in:
parent
ef0126a6ae
commit
fcbcc6de95
@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
[:div.modal-footer
|
[:div.modal-footer
|
||||||
[:div.action-buttons
|
[:div.action-buttons
|
||||||
(when-not (empty? cancel-label)
|
(when-not (= cancel-label :omit)
|
||||||
[:input.cancel-button
|
[:input.cancel-button
|
||||||
{:type "button"
|
{:type "button"
|
||||||
:value cancel-label
|
:value cancel-label
|
||||||
|
|||||||
@ -112,7 +112,7 @@
|
|||||||
:message ""
|
:message ""
|
||||||
:title (t locale "modals.add-shared-confirm.message" (:name file))
|
:title (t locale "modals.add-shared-confirm.message" (:name file))
|
||||||
:hint (t locale "modals.add-shared-confirm.hint")
|
:hint (t locale "modals.add-shared-confirm.hint")
|
||||||
:cancel-label ""
|
:cancel-label :omit
|
||||||
:accept-label (t locale "modals.add-shared-confirm.accept")
|
:accept-label (t locale "modals.add-shared-confirm.accept")
|
||||||
:accept-style :primary
|
:accept-style :primary
|
||||||
:on-accept add-shared}))))
|
:on-accept add-shared}))))
|
||||||
@ -128,7 +128,7 @@
|
|||||||
:message ""
|
:message ""
|
||||||
:title (t locale "modals.remove-shared-confirm.message" (:name file))
|
:title (t locale "modals.remove-shared-confirm.message" (:name file))
|
||||||
:hint (t locale "modals.remove-shared-confirm.hint")
|
:hint (t locale "modals.remove-shared-confirm.hint")
|
||||||
:cancel-label ""
|
:cancel-label :omit
|
||||||
:accept-label (t locale "modals.remove-shared-confirm.accept")
|
:accept-label (t locale "modals.remove-shared-confirm.accept")
|
||||||
:on-accept del-shared}))))
|
:on-accept del-shared}))))
|
||||||
|
|
||||||
|
|||||||
@ -110,7 +110,7 @@
|
|||||||
:message ""
|
:message ""
|
||||||
:title (t locale "modals.add-shared-confirm.message" (:name file))
|
:title (t locale "modals.add-shared-confirm.message" (:name file))
|
||||||
:hint (t locale "modals.add-shared-confirm.hint")
|
:hint (t locale "modals.add-shared-confirm.hint")
|
||||||
:cancel-label ""
|
:cancel-label :omit
|
||||||
:accept-label (t locale "modals.add-shared-confirm.accept")
|
:accept-label (t locale "modals.add-shared-confirm.accept")
|
||||||
:accept-style :primary
|
:accept-style :primary
|
||||||
:on-accept add-shared-fn})))
|
:on-accept add-shared-fn})))
|
||||||
@ -123,7 +123,7 @@
|
|||||||
:message ""
|
:message ""
|
||||||
:title (t locale "modals.remove-shared-confirm.message" (:name file))
|
:title (t locale "modals.remove-shared-confirm.message" (:name file))
|
||||||
:hint (t locale "modals.remove-shared-confirm.hint")
|
:hint (t locale "modals.remove-shared-confirm.hint")
|
||||||
:cancel-label ""
|
:cancel-label :omit
|
||||||
:accept-label (t locale "modals.remove-shared-confirm.accept")
|
:accept-label (t locale "modals.remove-shared-confirm.accept")
|
||||||
:on-accept del-shared-fn})))
|
:on-accept del-shared-fn})))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user