diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-08 09:44:03 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-14 15:34:23 +0100 |
commit | 0636320ea67849023973a7eb12f566cefcf7e6ff (patch) | |
tree | dbd719ad75df890f304c4b8c56955032e1f7aca7 /app/assets | |
parent | 3c9318a8c58f638f57cfe86cb2f84625445996c8 (diff) | |
download | gitlab-ce-0636320ea67849023973a7eb12f566cefcf7e6ff.tar.gz |
Add expirations to CA and user callouts
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js | 2 | ||||
-rw-r--r-- | app/assets/javascripts/user_callout.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js b/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js index b099b39e58f..48cab437e02 100644 --- a/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js +++ b/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js @@ -125,7 +125,7 @@ $(() => { }, dismissOverviewDialog() { this.isOverviewDialogDismissed = true; - Cookies.set(OVERVIEW_DIALOG_COOKIE, '1'); + Cookies.set(OVERVIEW_DIALOG_COOKIE, '1', { expires: 365 }); }, }, }); diff --git a/app/assets/javascripts/user_callout.js b/app/assets/javascripts/user_callout.js index fa078b48bf8..b9d57cbcad4 100644 --- a/app/assets/javascripts/user_callout.js +++ b/app/assets/javascripts/user_callout.js @@ -18,7 +18,7 @@ export default class UserCallout { dismissCallout(e) { const $currentTarget = $(e.currentTarget); - Cookies.set(USER_CALLOUT_COOKIE, 'true'); + Cookies.set(USER_CALLOUT_COOKIE, 'true', { expires: 365 }); if ($currentTarget.hasClass('close')) { this.userCalloutBody.remove(); |