Skip to content
Snippets Groups Projects
Commit ec5ba730 authored by Phil Hughes's avatar Phil Hughes
Browse files

Merge branch 'add-cookie-expirations-to-callouts' into 'master'

Add expirations to CA and user callouts

Closes #30267

See merge request !10568
parents e04aef5c 0636320e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -125,7 +125,7 @@ $(() => {
},
dismissOverviewDialog() {
this.isOverviewDialogDismissed = true;
Cookies.set(OVERVIEW_DIALOG_COOKIE, '1');
Cookies.set(OVERVIEW_DIALOG_COOKIE, '1', { expires: 365 });
},
},
});
Loading
Loading
Loading
Loading
@@ -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();
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment