From 683657a28132eec10db48a21ee82cba730392276 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Mon, 3 Jan 2022 03:29:12 +0100 Subject: [PATCH] Add TypeScript wrapper around legacy notification functionality --- app/javascript/retrospring/utilities/notifications.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/javascript/retrospring/utilities/notifications.ts diff --git a/app/javascript/retrospring/utilities/notifications.ts b/app/javascript/retrospring/utilities/notifications.ts new file mode 100644 index 00000000..2db8da7d --- /dev/null +++ b/app/javascript/retrospring/utilities/notifications.ts @@ -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); +} \ No newline at end of file