summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/persistent_user_callout.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/persistent_user_callout.js')
-rw-r--r--app/assets/javascripts/persistent_user_callout.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/persistent_user_callout.js b/app/assets/javascripts/persistent_user_callout.js
index 9cea89f4990..7e331bdd91d 100644
--- a/app/assets/javascripts/persistent_user_callout.js
+++ b/app/assets/javascripts/persistent_user_callout.js
@@ -7,12 +7,13 @@ const DEFERRED_LINK_CLASS = 'deferred-link';
export default class PersistentUserCallout {
constructor(container, options = container.dataset) {
- const { dismissEndpoint, featureId, groupId, namespaceId, deferLinks } = options;
+ const { dismissEndpoint, featureId, groupId, namespaceId, projectId, deferLinks } = options;
this.container = container;
this.dismissEndpoint = dismissEndpoint;
this.featureId = featureId;
this.groupId = groupId;
this.namespaceId = namespaceId;
+ this.projectId = projectId;
this.deferLinks = parseBoolean(deferLinks);
this.closeButtons = this.container.querySelectorAll('.js-close');
@@ -58,6 +59,7 @@ export default class PersistentUserCallout {
feature_name: this.featureId,
group_id: this.groupId,
namespace_id: this.namespaceId,
+ project_id: this.projectId,
})
.then(() => {
this.container.remove();