diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2019-03-06 15:02:16 +0300 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-03-06 15:02:16 +0300 |
commit | 5423ba81fc2caa32a5dca5c8ad39f8543ff36481 (patch) | |
tree | 8dbaf0c77d0874e528b7b5e39484754c84ca036b /app/assets | |
parent | 36051b9a2b0d3b46a5efc65acecd3b2ba9ac9b2f (diff) | |
parent | 1263c79095c30fbdeecb26935aded531163c1b3e (diff) |
Merge branch 'ce-billings-gold-trial-callout-fe' into 'master'
CE FE Add PersistentUserCallout factory method
See merge request gitlab-org/gitlab-ce!25481
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/persistent_user_callout.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/assets/javascripts/persistent_user_callout.js b/app/assets/javascripts/persistent_user_callout.js index 1e34e74a152..4a08e158f6b 100644 --- a/app/assets/javascripts/persistent_user_callout.js +++ b/app/assets/javascripts/persistent_user_callout.js @@ -31,4 +31,12 @@ export default class PersistentUserCallout { Flash(__('An error occurred while dismissing the alert. Refresh the page and try again.')); }); } + + static factory(container) { + if (!container) { + return undefined; + } + + return new PersistentUserCallout(container); + } } |