mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
Fix hint message on confirm dialog.
This commit is contained in:
parent
9e056709df
commit
4ef4185373
1 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
||||||
[uxbox.main.ui.lightbox :as lbx]))
|
[uxbox.main.ui.lightbox :as lbx]))
|
||||||
|
|
||||||
(defn- confirm-dialog-render
|
(defn- confirm-dialog-render
|
||||||
[own {:keys [on-accept on-cancel] :as ctx}]
|
[own {:keys [on-accept on-cancel hint] :as ctx}]
|
||||||
(letfn [(accept [event]
|
(letfn [(accept [event]
|
||||||
(dom/prevent-default event)
|
(dom/prevent-default event)
|
||||||
(udl/close!)
|
(udl/close!)
|
||||||
|
@ -27,7 +27,8 @@
|
||||||
(html
|
(html
|
||||||
[:div.lightbox-body.confirm-dialog
|
[:div.lightbox-body.confirm-dialog
|
||||||
[:h3 "Are you sure?"]
|
[:h3 "Are you sure?"]
|
||||||
[:span "You're going to delete __PAGENAME__"]
|
(if hint
|
||||||
|
[:span hint])
|
||||||
[:div.row-flex
|
[:div.row-flex
|
||||||
[:input.btn-success.btn-small
|
[:input.btn-success.btn-small
|
||||||
{:type "button"
|
{:type "button"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue