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/serverless/store/mutations.js')
-rw-r--r--app/assets/javascripts/serverless/store/mutations.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/app/assets/javascripts/serverless/store/mutations.js b/app/assets/javascripts/serverless/store/mutations.js
deleted file mode 100644
index 2685a5b11ff..00000000000
--- a/app/assets/javascripts/serverless/store/mutations.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import * as types from './mutation_types';
-
-export default {
- [types.REQUEST_FUNCTIONS_LOADING](state) {
- state.isLoading = true;
- },
- [types.RECEIVE_FUNCTIONS_SUCCESS](state, data) {
- state.functions = data.functions;
- state.installed = data.knative_installed;
- state.isLoading = false;
- state.hasFunctionData = true;
- },
- [types.RECEIVE_FUNCTIONS_PARTIAL](state, data) {
- state.functions = data.functions;
- state.installed = true;
- state.isLoading = true;
- state.hasFunctionData = true;
- },
- [types.RECEIVE_FUNCTIONS_TIMEOUT](state) {
- state.isLoading = false;
- },
- [types.RECEIVE_FUNCTIONS_NODATA_SUCCESS](state, data) {
- state.isLoading = false;
- state.installed = data.knative_installed;
- state.hasFunctionData = false;
- },
- [types.RECEIVE_FUNCTIONS_ERROR](state, error) {
- state.error = error;
- state.hasFunctionData = false;
- state.isLoading = false;
- },
- [types.RECEIVE_METRICS_SUCCESS](state, data) {
- state.isLoading = false;
- state.hasPrometheusData = true;
- state.graphData = data;
- },
- [types.RECEIVE_METRICS_NODATA_SUCCESS](state) {
- state.isLoading = false;
- state.hasPrometheusData = false;
- },
- [types.RECEIVE_METRICS_ERROR](state, error) {
- state.hasPrometheusData = false;
- state.error = error;
- },
- [types.RECEIVE_METRICS_NO_PROMETHEUS](state) {
- state.hasPrometheusData = false;
- state.hasPrometheus = false;
- },
-};