Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/vue_shared/security_reports/store/modules/sast/actions.js')
-rw-r--r--app/assets/javascripts/vue_shared/security_reports/store/modules/sast/actions.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/app/assets/javascripts/vue_shared/security_reports/store/modules/sast/actions.js b/app/assets/javascripts/vue_shared/security_reports/store/modules/sast/actions.js
deleted file mode 100644
index 8aefc13a5fa..00000000000
--- a/app/assets/javascripts/vue_shared/security_reports/store/modules/sast/actions.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import { REPORT_TYPE_SAST } from '~/vue_shared/security_reports/constants';
-import { fetchDiffData } from '../../utils';
-import * as types from './mutation_types';
-
-export const setDiffEndpoint = ({ commit }, path) => commit(types.SET_DIFF_ENDPOINT, path);
-
-export const requestDiff = ({ commit }) => commit(types.REQUEST_DIFF);
-
-export const receiveDiffSuccess = ({ commit }, response) =>
- commit(types.RECEIVE_DIFF_SUCCESS, response);
-
-export const receiveDiffError = ({ commit }, response) =>
- commit(types.RECEIVE_DIFF_ERROR, response);
-
-export const fetchDiff = ({ state, rootState, dispatch }) => {
- dispatch('requestDiff');
-
- return fetchDiffData(rootState, state.paths.diffEndpoint, REPORT_TYPE_SAST)
- .then((data) => {
- dispatch('receiveDiffSuccess', data);
- return data;
- })
- .catch(() => {
- dispatch('receiveDiffError');
- });
-};