Add expirations to CA and user callouts
This commit is contained in:
parent
3c9318a8c5
commit
0636320ea6
|
@ -125,7 +125,7 @@ $(() => {
|
||||||
},
|
},
|
||||||
dismissOverviewDialog() {
|
dismissOverviewDialog() {
|
||||||
this.isOverviewDialogDismissed = true;
|
this.isOverviewDialogDismissed = true;
|
||||||
Cookies.set(OVERVIEW_DIALOG_COOKIE, '1');
|
Cookies.set(OVERVIEW_DIALOG_COOKIE, '1', { expires: 365 });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -18,7 +18,7 @@ export default class UserCallout {
|
||||||
dismissCallout(e) {
|
dismissCallout(e) {
|
||||||
const $currentTarget = $(e.currentTarget);
|
const $currentTarget = $(e.currentTarget);
|
||||||
|
|
||||||
Cookies.set(USER_CALLOUT_COOKIE, 'true');
|
Cookies.set(USER_CALLOUT_COOKIE, 'true', { expires: 365 });
|
||||||
|
|
||||||
if ($currentTarget.hasClass('close')) {
|
if ($currentTarget.hasClass('close')) {
|
||||||
this.userCalloutBody.remove();
|
this.userCalloutBody.remove();
|
||||||
|
|
Loading…
Reference in New Issue