File tree Expand file tree Collapse file tree
client/src/components/Dataset Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { useDatatypesMapperStore } from "@/stores/datatypesMapperStore";
1010import { useDatatypeStore } from " @/stores/datatypeStore" ;
1111import { withPrefix } from " @/utils/redirect" ;
1212import { bytesToString } from " @/utils/utils" ;
13+ import STATES from " @/utils/datasetStates" ;
1314
1415import DatasetError from " ../DatasetInformation/DatasetError.vue" ;
1516import LoadingSpan from " ../LoadingSpan.vue" ;
@@ -81,9 +82,9 @@ const preferredVisualization = computed(
8182
8283// Match dataset state
8384const showError = computed (
84- () => dataset .value && ( dataset . value . state === " error " || dataset .value .state === " failed_metadata " ),
85+ () => dataset .value && STATES . ERROR_STATES . includes ( dataset .value .state ),
8586);
86- const showOk = computed (() => dataset .value && dataset .value .state === " ok " );
87+ const showOk = computed (() => dataset .value && dataset .value .state === STATES . OK );
8788
8889// Watch for changes to the dataset to fetch datatype info
8990watch (
You can’t perform that action at this time.
0 commit comments