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/service_ping_consent.js')
-rw-r--r--app/assets/javascripts/service_ping_consent.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/service_ping_consent.js b/app/assets/javascripts/service_ping_consent.js
index f2c3f28cefa..654263ba27b 100644
--- a/app/assets/javascripts/service_ping_consent.js
+++ b/app/assets/javascripts/service_ping_consent.js
@@ -1,5 +1,5 @@
import $ from 'jquery';
-import { createAlert, hideFlash } from './flash';
+import { createAlert } from './flash';
import axios from './lib/utils/axios_utils';
import { parseBoolean } from './lib/utils/common_utils';
import { __ } from './locale';
@@ -18,7 +18,7 @@ export default () => {
};
const hideConsentMessage = () =>
- hideFlash(document.querySelector('.service-ping-consent-message'));
+ document.querySelector('.service-ping-consent-message .js-close')?.click();
axios
.put(url, data)