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])) [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"