diff --git a/components/data-stores/tables/DetailedDataStoreTable.vue b/components/data-stores/tables/DetailedDataStoreTable.vue index e0e85bc..c7bb60f 100644 --- a/components/data-stores/tables/DetailedDataStoreTable.vue +++ b/components/data-stores/tables/DetailedDataStoreTable.vue @@ -6,6 +6,7 @@ import { FilterMatchMode } from "primevue/api"; import SearchBar from "~/components/table/SearchBar.vue"; import { extractUuid } from "~/utils/extract-uuid-from-kong-username"; import { parseUnixTimestamp } from "~/utils/format-data-row"; +import { getDataStoreTypeSeverity } from "~/utils/status-tag-severity"; const props = defineProps({ stores: Array, @@ -18,6 +19,8 @@ const confirm = useConfirm(); const toast = useToast(); const deleteLoading = ref(false); +const dataStoreTypes = ["s3", "fhir"]; + function compiledTableRows() { let tableRows = []; @@ -101,6 +104,7 @@ const confirmDelete = (event, dsName: string) => { // Table filters const defaultFilters = { global: { value: null, matchMode: FilterMatchMode.CONTAINS }, + type: { value: null, matchMode: FilterMatchMode.EQUALS }, "created_at.short": { value: null, matchMode: FilterMatchMode.DATE_IS }, "updated_at.short": { value: null, matchMode: FilterMatchMode.DATE_IS }, }; @@ -160,7 +164,40 @@ const updateFilters = (filterText: string) => { style="width: 30rem" > - + + + + diff --git a/utils/status-tag-severity.ts b/utils/status-tag-severity.ts index 2e2e0f3..34c284d 100644 --- a/utils/status-tag-severity.ts +++ b/utils/status-tag-severity.ts @@ -60,3 +60,13 @@ export const getRunStatusSeverity = (status) => { return "success"; } }; + +export const getDataStoreTypeSeverity = (status) => { + switch (status) { + case "s3": + return "info"; + + case "fhir": + return "danger"; + } +};