diff --git a/client/src/components/DataDialog/DataDialog.vue b/client/src/components/DataDialog/DataDialog.vue index 8302589752e3..fd0f86201ea4 100644 --- a/client/src/components/DataDialog/DataDialog.vue +++ b/client/src/components/DataDialog/DataDialog.vue @@ -23,6 +23,7 @@ interface Record { interface Props { allowUpload?: boolean; callback?: (results: Array) => void; + filterOkState?: boolean; format?: string; library?: boolean; modalStatic?: boolean; @@ -34,6 +35,7 @@ interface Props { const props = withDefaults(defineProps(), { allowUpload: true, callback: () => {}, + filterOkState: false, format: "download", library: true, modalStatic: false, @@ -90,7 +92,11 @@ function formatRows() { /** Returns the default url i.e. the url of the current history **/ function getHistoryUrl() { - return `${getAppRoot()}api/histories/${props.history}/contents?deleted=false`; + let queryString = "&q=deleted&qv=false"; + if (props.filterOkState) { + queryString += "&q=state-eq&qv=ok"; + } + return `${getAppRoot()}api/histories/${props.history}/contents?v=dev${queryString}`; } /** Called when the modal is hidden */ diff --git a/client/src/components/Panels/VisualizationPanel.vue b/client/src/components/Panels/VisualizationPanel.vue index 50d0b089b473..fedc8dfab1fd 100644 --- a/client/src/components/Panels/VisualizationPanel.vue +++ b/client/src/components/Panels/VisualizationPanel.vue @@ -93,9 +93,10 @@ onMounted(() => { No matching visualization found.