diff --git a/client/src/store/datasetExtFilesStore.js b/client/src/store/datasetExtFilesStore.js deleted file mode 100644 index 8ae400479093..000000000000 --- a/client/src/store/datasetExtFilesStore.js +++ /dev/null @@ -1,35 +0,0 @@ -import axios from "axios"; -import { getAppRoot } from "onload/loadConfig"; -import Vue from "vue"; - -export const state = { - datasetExtFilesById: {}, -}; - -const getters = { - getDatasetExtFiles: (state) => (history_dataset_id) => { - return state.datasetExtFilesById[history_dataset_id] || null; - }, -}; - -const actions = { - fetchDatasetExtFiles: async ({ commit }, history_dataset_id) => { - const { data } = await axios.get( - `${getAppRoot()}api/histories/${history_dataset_id}/contents/${history_dataset_id}/extra_files` - ); - commit("saveDatasetExtFiles", { history_dataset_id, datasetExtFiles: data }); - }, -}; - -const mutations = { - saveDatasetExtFiles: (state, { history_dataset_id, datasetExtFiles }) => { - Vue.set(state.datasetExtFilesById, history_dataset_id, datasetExtFiles); - }, -}; - -export const datasetExtFilesStore = { - state, - getters, - actions, - mutations, -}; diff --git a/client/src/store/index.js b/client/src/store/index.js index fb33a9ab671b..fd6f6d7bde87 100644 --- a/client/src/store/index.js +++ b/client/src/store/index.js @@ -9,7 +9,6 @@ import Vuex from "vuex"; import createCache from "vuex-cache"; import VuexPersistence from "vuex-persist"; -import { datasetExtFilesStore } from "./datasetExtFilesStore"; import { datasetPathDestinationStore } from "./datasetPathDestinationStore"; import { gridSearchStore } from "./gridSearchStore"; import { invocationStore } from "./invocationStore"; @@ -41,7 +40,6 @@ export function createStore() { const storeConfig = { plugins: [createCache(), panelsPersistence.plugin], modules: { - datasetExtFiles: datasetExtFilesStore, datasetPathDestination: datasetPathDestinationStore, invocations: invocationStore, gridSearch: gridSearchStore,