0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 17:00:36 -05:00

Enhance confirm dialog cancel options

This commit is contained in:
Andrés Moya 2020-10-15 11:04:10 +02:00 committed by Andrey Antukh
parent ef0126a6ae
commit fcbcc6de95
3 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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}))))

View file

@ -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})))