diff --git a/app/javascript/retrospring/controllers/announcement_controller.ts b/app/javascript/retrospring/controllers/announcement_controller.ts index ee062b23..2bd44fbf 100644 --- a/app/javascript/retrospring/controllers/announcement_controller.ts +++ b/app/javascript/retrospring/controllers/announcement_controller.ts @@ -1,4 +1,5 @@ import { Controller } from '@hotwired/stimulus'; +import { Alert } from 'bootstrap'; export default class extends Controller { static values = { @@ -15,5 +16,8 @@ export default class extends Controller { close(): void { window.localStorage.setItem(`announcement${this.idValue}`, 'true'); + + const alert = Alert.getOrCreateInstance(this.element); + alert.close(); } }