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