diff --git a/packages/ui/src/components/MagnetarTable.vue b/packages/ui/src/components/MagnetarTable.vue index c949007b..5328ac4c 100644 --- a/packages/ui/src/components/MagnetarTable.vue +++ b/packages/ui/src/components/MagnetarTable.vue @@ -161,10 +161,7 @@ async function setFilter(filterIndex: number, payload: null | FilterState): Prom await fetchMore() } -async function setOrderBy( - fieldPath: OPaths, - direction: 'asc' | 'desc' | undefined -): Promise { +async function setOrderBy(fieldPath: OPaths, direction: 'asc' | 'desc' | null): Promise { clearAllRecords() if (!direction) orderByState.value.delete(fieldPath) if (direction) orderByState.value.set(fieldPath, direction) @@ -172,54 +169,63 @@ async function setOrderBy( await new Promise((resolve) => setTimeout(resolve, 200)) await fetchMore() } + +const showingFiltersCode = ref(false)