@catandbox/schrodinger-web-adapter 0.1.33 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -235,7 +235,7 @@ export async function renderTicketList(container, client, emitter, locale) {
|
|
|
235
235
|
</s-button>
|
|
236
236
|
</div>
|
|
237
237
|
|
|
238
|
-
<div style="display:
|
|
238
|
+
<div id="sch-filter-bar" style="display:none; gap:12px; flex-wrap:wrap;">
|
|
239
239
|
${categories.length > 0 ? `
|
|
240
240
|
<div style="flex:1; min-width:140px;">
|
|
241
241
|
<s-select id="sch-filter-category" label="Category">
|
|
@@ -273,6 +273,11 @@ export async function renderTicketList(container, client, emitter, locale) {
|
|
|
273
273
|
}
|
|
274
274
|
function renderBody() {
|
|
275
275
|
const body = container.querySelector("#sch-ticket-list-body");
|
|
276
|
+
const filterBar = container.querySelector("#sch-filter-bar");
|
|
277
|
+
const hasActiveFilter = !!(categoryFilter || statusFilter);
|
|
278
|
+
if (filterBar) {
|
|
279
|
+
filterBar.style.display = allTickets.length > 0 || hasActiveFilter ? "flex" : "none";
|
|
280
|
+
}
|
|
276
281
|
let filtered = allTickets.filter((t) => {
|
|
277
282
|
if (statusFilter && t.status !== statusFilter)
|
|
278
283
|
return false;
|