mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 07:26:03 +01:00
Add TypeScript wrapper around legacy notification functionality
This commit is contained in:
parent
5337897b23
commit
683657a281
1 changed files with 7 additions and 0 deletions
7
app/javascript/retrospring/utilities/notifications.ts
Normal file
7
app/javascript/retrospring/utilities/notifications.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
export function showErrorNotification(text: string): void {
|
||||
showNotification(text, false);
|
||||
}
|
||||
|
||||
export function showNotification(text: string, status = true): void {
|
||||
window['showNotification'](text, status);
|
||||
}
|
Loading…
Reference in a new issue