From abc7b5835bde420d98a3dce1d7ce0e6eca6856b7 Mon Sep 17 00:00:00 2001 From: Sergius Nyah Date: Thu, 28 Mar 2024 14:23:42 +0100 Subject: [PATCH] Modified cookie message to disappear after 2 seconds --- app/controllers/application.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/application.js b/app/controllers/application.js index f5a7af36669..d440711aac5 100644 --- a/app/controllers/application.js +++ b/app/controllers/application.js @@ -5,7 +5,7 @@ import { filterBy } from '@ember/object/computed'; import Controller from '@ember/controller'; import moment from 'moment-timezone'; import { tracked } from '@glimmer/tracking'; - +import { later } from '@ember/runloop'; @classic export default class ApplicationController extends Controller { @@ -51,7 +51,9 @@ export default class ApplicationController extends Controller { @action hideCookieMessage() { this.getCookieSeen(true); - this.showCookie = false; + later(this, () => { + this.showCookie = false; + }, 2000); } @action