diff --git a/client/src/components/DataDialog/DataDialog.vue b/client/src/components/DataDialog/DataDialog.vue index fd0f86201ea4..50a417f0d070 100644 --- a/client/src/components/DataDialog/DataDialog.vue +++ b/client/src/components/DataDialog/DataDialog.vue @@ -24,6 +24,7 @@ interface Props { allowUpload?: boolean; callback?: (results: Array) => void; filterOkState?: boolean; + filterByTypeIds?: string[]; format?: string; library?: boolean; modalStatic?: boolean; @@ -36,6 +37,7 @@ const props = withDefaults(defineProps(), { allowUpload: true, callback: () => {}, filterOkState: false, + filterByTypeIds: undefined, format: "download", library: true, modalStatic: false, @@ -96,6 +98,9 @@ function getHistoryUrl() { if (props.filterOkState) { queryString += "&q=state-eq&qv=ok"; } + if (props.filterByTypeIds && props.filterByTypeIds.length > 0) { + queryString += `&q=type_id-in&qv=${props.filterByTypeIds.join(",")}`; + } return `${getAppRoot()}api/histories/${props.history}/contents?v=dev${queryString}`; } @@ -192,6 +197,7 @@ watch( :disable-ok="!hasValue" :fields="fields" :items="items" + :total-items="items.length" :modal-show="modalShow" :multiple="multiple" :options-show="optionsShow" diff --git a/client/src/components/Panels/VisualizationPanel.vue b/client/src/components/Panels/VisualizationPanel.vue index fedc8dfab1fd..d9fbf144aa2c 100644 --- a/client/src/components/Panels/VisualizationPanel.vue +++ b/client/src/components/Panels/VisualizationPanel.vue @@ -1,5 +1,6 @@