aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/services/toasts.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app/services/toasts.service.ts')
-rw-r--r--ufund-ui/src/app/services/toasts.service.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/ufund-ui/src/app/services/toasts.service.ts b/ufund-ui/src/app/services/toasts.service.ts
new file mode 100644
index 0000000..0c35e45
--- /dev/null
+++ b/ufund-ui/src/app/services/toasts.service.ts
@@ -0,0 +1,19 @@
+import {Injectable} from '@angular/core';
+
+export enum ToastType {
+ INFO,
+ WARNING,
+ ERROR
+}
+
+@Injectable({
+ providedIn: 'root'
+})
+export class ToastsService {
+
+ constructor() {}
+
+ sendToast(type: ToastType, message: string, action?: {label: string, onAction: () => void}) {
+
+ }
+}