0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

Fix hint message on confirm dialog.

This commit is contained in:
Andrey Antukh 2016-06-26 19:25:23 +03:00
parent 9e056709df
commit 4ef4185373
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -14,7 +14,7 @@
[uxbox.main.ui.lightbox :as lbx]))
(defn- confirm-dialog-render
[own {:keys [on-accept on-cancel] :as ctx}]
[own {:keys [on-accept on-cancel hint] :as ctx}]
(letfn [(accept [event]
(dom/prevent-default event)
(udl/close!)
@ -27,7 +27,8 @@
(html
[:div.lightbox-body.confirm-dialog
[:h3 "Are you sure?"]
[:span "You're going to delete __PAGENAME__"]
(if hint
[:span hint])
[:div.row-flex
[:input.btn-success.btn-small
{:type "button"