diff options
author | Luke Bennett <lbennett@gitlab.com> | 2018-10-12 12:45:50 +0300 |
---|---|---|
committer | Luke Bennett <lbennett@gitlab.com> | 2018-10-12 12:45:50 +0300 |
commit | 06c24d497de3b2e22b1a2fc13ae1cd2cb0100b84 (patch) | |
tree | 4019fab21def0c26bb119167bc6af3b70b648c81 /app/assets/javascripts/persistent_user_callout.js | |
parent | a5ecb5bbdac05c3b1a96ecb918ce6a4ceed37d75 (diff) |
Revert "Merge branch 'ce-6983-promote-starting-a-gitlab-com-trial' into 'master'"
This reverts merge request !21551
Diffstat (limited to 'app/assets/javascripts/persistent_user_callout.js')
-rw-r--r-- | app/assets/javascripts/persistent_user_callout.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app/assets/javascripts/persistent_user_callout.js b/app/assets/javascripts/persistent_user_callout.js deleted file mode 100644 index 1e34e74a152..00000000000 --- a/app/assets/javascripts/persistent_user_callout.js +++ /dev/null @@ -1,34 +0,0 @@ -import axios from './lib/utils/axios_utils'; -import { __ } from './locale'; -import Flash from './flash'; - -export default class PersistentUserCallout { - constructor(container) { - const { dismissEndpoint, featureId } = container.dataset; - this.container = container; - this.dismissEndpoint = dismissEndpoint; - this.featureId = featureId; - - this.init(); - } - - init() { - const closeButton = this.container.querySelector('.js-close'); - closeButton.addEventListener('click', event => this.dismiss(event)); - } - - dismiss(event) { - event.preventDefault(); - - axios - .post(this.dismissEndpoint, { - feature_name: this.featureId, - }) - .then(() => { - this.container.remove(); - }) - .catch(() => { - Flash(__('An error occurred while dismissing the alert. Refresh the page and try again.')); - }); - } -} |