diff --git a/client/src/components/DataDialog/DataDialog.vue b/client/src/components/DataDialog/DataDialog.vue index bedead028e3..527bdbbf30a 100644 --- a/client/src/components/DataDialog/DataDialog.vue +++ b/client/src/components/DataDialog/DataDialog.vue @@ -5,6 +5,7 @@ import { BBadge } from "bootstrap-vue"; import { onMounted, type Ref, ref, watch } from "vue"; import Vue from "vue"; +import type { TableField } from "@/components/Common/GTable.types"; import type { DataOption } from "@/components/Form/Elements/FormData/types"; import type { SelectionItem } from "@/components/SelectionDialog/selectionTypes"; import { useGlobalUploadModal } from "@/composables/globalUploadModal"; @@ -13,7 +14,6 @@ import { useUrlTracker } from "@/composables/urlTracker"; import { getAppRoot } from "@/onload/loadConfig"; import { errorMessageAsString } from "@/utils/simple-error"; -import { Model } from "./model"; import { Services } from "./services"; import GButton from "@/components/BaseComponents/GButton.vue"; @@ -69,18 +69,22 @@ const model = new Model({ multiple: props.multiple, format: props.format }); const urlTracker = useUrlTracker({ root: getHistoryUrl() }); /** Specifies data columns to be shown in the dialog's table */ -const fields = [ +const fields: TableField[] = [ { key: "label", + label: "Name", }, { key: "extension", + label: "Extension", }, { key: "tags", + label: "Tags", }, { key: "update_time", + label: "Update Time", }, ]; diff --git a/client/src/components/FilesDialog/FilesDialog.vue b/client/src/components/FilesDialog/FilesDialog.vue index 47908a8e368..bba7ebff6e6 100644 --- a/client/src/components/FilesDialog/FilesDialog.vue +++ b/client/src/components/FilesDialog/FilesDialog.vue @@ -11,6 +11,7 @@ import { type FilterFileSourcesOptions, type RemoteEntry, } from "@/api/remoteFiles"; +import type { TableField } from "@/components/Common/GTable.types"; import { fileSourcePluginToItem, isSubPath } from "@/components/FilesDialog/utilities"; import { type ItemsProvider, @@ -87,14 +88,14 @@ const selectAllIcon = ref(SELECTION_STATES.UNSELECTED); const urlTracker = useUrlTracker({ root: undefined }); const totalItems = ref(0); -const fields = computed(() => { +const fields = computed(() => { const fields = []; - fields.push({ key: "label" }); + fields.push({ key: "label", label: "Name" }); if (showDetails.value) { - fields.push({ key: "details" }); + fields.push({ key: "details", label: "Details" }); } if (showTime.value) { - fields.push({ key: "time" }); + fields.push({ key: "time", label: "Time" }); } return fields; }); diff --git a/client/src/components/SelectionDialog/BasicSelectionDialog.vue b/client/src/components/SelectionDialog/BasicSelectionDialog.vue index 6c421d911fa..acca105a90d 100644 --- a/client/src/components/SelectionDialog/BasicSelectionDialog.vue +++ b/client/src/components/SelectionDialog/BasicSelectionDialog.vue @@ -1,6 +1,7 @@