Added the ability to remove them in the ui.3
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
[:footer.modal-card-foot
|
||||
foot])]])
|
||||
|
||||
(defn action-modal [{:keys [title warning action-text id save-event can-submit? status-from] :or {can-submit? true}} & rest]
|
||||
(defn action-modal [{:keys [title class warning action-text id save-event can-submit? status-from] :or {can-submit? true}} & rest]
|
||||
(let [{:keys [visible? saving? error-message]} @(re-frame/subscribe [::subs/modal-state id status-from])]
|
||||
(println id visible?)
|
||||
(when visible?
|
||||
@@ -32,6 +32,7 @@
|
||||
(re-frame/dispatch [::events/modal-status id {:saving? true :error-message nil}])
|
||||
(re-frame/dispatch save-event))}
|
||||
(-> [modal {:title [:span title]
|
||||
:class class
|
||||
:foot [:input.button.is-primary (cond-> {:type "submit"
|
||||
:form id
|
||||
:class (when saving?
|
||||
|
||||
Reference in New Issue
Block a user