Skip to content

Commit abc7b58

Browse files
committed
Modified cookie message to disappear after 2 seconds
1 parent e6f8b09 commit abc7b58

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/controllers/application.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { filterBy } from '@ember/object/computed';
55
import Controller from '@ember/controller';
66
import moment from 'moment-timezone';
77
import { tracked } from '@glimmer/tracking';
8-
8+
import { later } from '@ember/runloop';
99

1010
@classic
1111
export default class ApplicationController extends Controller {
@@ -51,7 +51,9 @@ export default class ApplicationController extends Controller {
5151
@action
5252
hideCookieMessage() {
5353
this.getCookieSeen(true);
54-
this.showCookie = false;
54+
later(this, () => {
55+
this.showCookie = false;
56+
}, 2000);
5557
}
5658

5759
@action

0 commit comments

Comments
 (0)