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/lib/alerts/index.js')
-rw-r--r--app/assets/javascripts/ide/lib/alerts/index.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/app/assets/javascripts/ide/lib/alerts/index.js b/app/assets/javascripts/ide/lib/alerts/index.js
deleted file mode 100644
index ac4eeb0386f..00000000000
--- a/app/assets/javascripts/ide/lib/alerts/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import { isDefaultCiConfig } from '~/lib/utils/common_utils';
-import { leftSidebarViews } from '../../constants';
-import EnvironmentsMessage from './environments.vue';
-
-const alerts = [
- {
- key: Symbol('ALERT_ENVIRONMENT'),
- show: (state, file) =>
- state.currentActivityView === leftSidebarViews.commit.name &&
- isDefaultCiConfig(file.path) &&
- state.environmentsGuidanceAlertDetected &&
- !state.environmentsGuidanceAlertDismissed,
- props: { variant: 'tip' },
- dismiss: ({ dispatch }) => dispatch('dismissEnvironmentsGuidance'),
- message: EnvironmentsMessage,
- },
-];
-
-export const findAlertKeyToShow = (...args) => alerts.find((x) => x.show(...args))?.key;
-
-export const getAlert = (key) => alerts.find((x) => x.key === key);