fix: Search button would stay on top of sidepanel when it was open.

This commit is contained in:
2025-01-18 09:05:07 -05:00
parent d8328314ed
commit 9efd920456
7 changed files with 62 additions and 166 deletions

View File

@@ -59,8 +59,9 @@ struct PurchaseOrderTable: HTML {
div(.class("btn-row")) {
if context != .search {
button(
.id("btn-search"),
.class("btn-primary"), .style("position: absolute; top: 80px; right: 20px;"),
.hx.get(route: .purchaseOrders(.search(.context(.employee)))),
.hx.get(route: .purchaseOrders(.search(.context(.employee, table: true)))),
.hx.target(.body),
.hx.swap(.outerHTML.transition(true).swap("0.5s")),
.hx.pushURL(true)