Streamlines more user interface

This commit is contained in:
Bryce
2024-03-27 11:36:41 -07:00
parent 5c2d3d4487
commit 13a083e053
4 changed files with 30 additions and 23 deletions

View File

@@ -324,12 +324,13 @@
(handler
(assoc request :wizard (hydrate-from-request linear-wizard request))))))
(defn open-wizard-handler [{:keys [wizard current-step] :as request}]
(modal-response
[:div#transitioner.flex-1 {:x-data (hx/json {"transitionType" "none"})
:x-ref "transitioner"
:class ""
"@htmx:after-request" "if(event.detail.xhr.getResponseHeader('x-transition-type')) {
(defn open-wizard-handler [{:keys [wizard current-step query-params] :as request}]
(cond->
(modal-response
[:div#transitioner.flex-1 {:x-data (hx/json {"transitionType" "none"})
:x-ref "transitioner"
:class ""
"@htmx:after-request" "if(event.detail.xhr.getResponseHeader('x-transition-type')) {
$refs.transitioner.classList.remove('forward')
$refs.transitioner.classList.remove('backward');
$refs.transitioner.classList.add('group/transition')
@@ -339,7 +340,8 @@
$refs.transitioner.classList.remove('group/transition')
}
"}
(render-wizard wizard request)]))
(render-wizard wizard request)])
(get query-params :replace-modal) (assoc-in [:headers "hx-trigger"] "modalswap")))