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/ide/stores/mutations/alert.js')
-rw-r--r--app/assets/javascripts/ide/stores/mutations/alert.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/app/assets/javascripts/ide/stores/mutations/alert.js b/app/assets/javascripts/ide/stores/mutations/alert.js
deleted file mode 100644
index bb2d33a836b..00000000000
--- a/app/assets/javascripts/ide/stores/mutations/alert.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import {
- DETECT_ENVIRONMENTS_GUIDANCE_ALERT,
- DISMISS_ENVIRONMENTS_GUIDANCE_ALERT,
-} from '../mutation_types';
-
-export default {
- [DETECT_ENVIRONMENTS_GUIDANCE_ALERT](state, stages) {
- if (!stages) {
- return;
- }
- const hasEnvironments = stages?.nodes?.some((stage) =>
- stage.groups.nodes.some((group) => group.jobs.nodes.some((job) => job.environment)),
- );
- const hasParsedCi = Array.isArray(stages.nodes);
-
- state.environmentsGuidanceAlertDetected = !hasEnvironments && hasParsedCi;
- },
- [DISMISS_ENVIRONMENTS_GUIDANCE_ALERT](state) {
- state.environmentsGuidanceAlertDismissed = true;
- },
-};