quick fix.
This commit is contained in:
@@ -134,16 +134,22 @@
|
|||||||
:active? (= ::invoice-route/voided-page (:matched-route request))
|
:active? (= ::invoice-route/voided-page (:matched-route request))
|
||||||
:hx-boost "true"}
|
:hx-boost "true"}
|
||||||
"Voided")
|
"Voided")
|
||||||
(menu-button- {:href (bidi/path-for client-routes/routes
|
|
||||||
:import-invoices)} "Import")
|
|
||||||
(when (can? (:identity request)
|
(when (can? (:identity request)
|
||||||
{:subject :ar-invoice
|
{:subject :invoice
|
||||||
|
:activity :import})
|
||||||
|
(menu-button- {:href (bidi/path-for client-routes/routes
|
||||||
|
:import-invoices)} "Import"))
|
||||||
|
|
||||||
|
|
||||||
|
(when (can? (:identity request)
|
||||||
|
{:subject :ar-invoice
|
||||||
:activity :read})
|
:activity :read})
|
||||||
(menu-button- {:href (bidi/path-for ssr-routes/only-routes
|
(menu-button- {:href (bidi/path-for ssr-routes/only-routes
|
||||||
::oi-routes/new)
|
::oi-routes/new)
|
||||||
:active? (= ::oi-routes/new (:matched-route request))
|
:active? (= ::oi-routes/new (:matched-route request))
|
||||||
:hx-boost "true"}
|
:hx-boost "true"}
|
||||||
"Create outgoing")))))
|
"Create outgoing")))))
|
||||||
|
|
||||||
(when
|
(when
|
||||||
(can? (:identity request) {:subject :sales :activity :read})
|
(can? (:identity request) {:subject :sales :activity :read})
|
||||||
@@ -360,10 +366,9 @@
|
|||||||
"Background Jobs")]
|
"Background Jobs")]
|
||||||
|
|
||||||
|
|
||||||
(when (can? (:identity request) {:subject :invoice :activity :import})
|
(menu-button- {:icon svg/arrow-in
|
||||||
(menu-button- {:icon svg/arrow-in
|
"@click.prevent" "if (selected == 'import') {selected = null } else { selected = 'import'} "}
|
||||||
"@click.prevent" "if (selected == 'import') {selected = null } else { selected = 'import'} "}
|
"Import")
|
||||||
"Import"))
|
|
||||||
|
|
||||||
(sub-menu- {:selector "import"}
|
(sub-menu- {:selector "import"}
|
||||||
(menu-button- {:href (bidi/path-for ssr-routes/only-routes
|
(menu-button- {:href (bidi/path-for ssr-routes/only-routes
|
||||||
|
|||||||
Reference in New Issue
Block a user