summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/gitlab_version_check/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/gitlab_version_check/index.js')
-rw-r--r--app/assets/javascripts/gitlab_version_check/index.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/app/assets/javascripts/gitlab_version_check/index.js b/app/assets/javascripts/gitlab_version_check/index.js
index edb7e9abe49..dff09d2cb51 100644
--- a/app/assets/javascripts/gitlab_version_check/index.js
+++ b/app/assets/javascripts/gitlab_version_check/index.js
@@ -1,7 +1,6 @@
import Vue from 'vue';
import { parseBoolean, convertObjectPropsToCamelCase } from '~/lib/utils/common_utils';
import GitlabVersionCheckBadge from './components/gitlab_version_check_badge.vue';
-import SecurityPatchUpgradeAlert from './components/security_patch_upgrade_alert.vue';
import SecurityPatchUpgradeAlertModal from './components/security_patch_upgrade_alert_modal.vue';
const mountGitlabVersionCheckBadge = (el) => {
@@ -33,25 +32,6 @@ const mountGitlabVersionCheckBadge = (el) => {
}
};
-const mountSecurityPatchUpgradeAlert = (el) => {
- const { currentVersion } = el.dataset;
-
- try {
- return new Vue({
- el,
- render(createElement) {
- return createElement(SecurityPatchUpgradeAlert, {
- props: {
- currentVersion,
- },
- });
- },
- });
- } catch {
- return null;
- }
-};
-
const mountSecurityPatchUpgradeAlertModal = (el) => {
const { currentVersion, version } = el.dataset;
@@ -78,16 +58,11 @@ const mountSecurityPatchUpgradeAlertModal = (el) => {
export default () => {
const renderedApps = [];
- const securityPatchUpgradeAlert = document.getElementById('js-security-patch-upgrade-alert');
const securityPatchUpgradeAlertModal = document.getElementById(
'js-security-patch-upgrade-alert-modal',
);
const versionCheckBadges = [...document.querySelectorAll('.js-gitlab-version-check-badge')];
- if (securityPatchUpgradeAlert) {
- renderedApps.push(mountSecurityPatchUpgradeAlert(securityPatchUpgradeAlert));
- }
-
if (securityPatchUpgradeAlertModal) {
renderedApps.push(mountSecurityPatchUpgradeAlertModal(securityPatchUpgradeAlertModal));
}