X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2Fcommon%2Feliot-ui%2Ffrontend-src%2Fsrc%2Fapp%2Fdeployments%2Ftoast.service.ts;fp=blueprints%2Fcommon%2Feliot-ui%2Ffrontend-src%2Fsrc%2Fapp%2Fdeployments%2Ftoast.service.ts;h=0000000000000000000000000000000000000000;hb=434326c60fb0434bda587102b4746173fe425dea;hp=8cda912dac9ba415af4efa6560ae7f745032c856;hpb=37827e492060182b32df67c2a538a29808fa5e17;p=eliot.git diff --git a/blueprints/common/eliot-ui/frontend-src/src/app/deployments/toast.service.ts b/blueprints/common/eliot-ui/frontend-src/src/app/deployments/toast.service.ts deleted file mode 100644 index 8cda912..0000000 --- a/blueprints/common/eliot-ui/frontend-src/src/app/deployments/toast.service.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Injectable, TemplateRef } from '@angular/core'; - -@Injectable({ - providedIn: 'root' -}) -export class ToastService { - toasts: any[] = []; - - show(textOrTpl: string | TemplateRef, options: any = {}) { - this.toasts.push({ textOrTpl, ...options }); - } - - remove(toast) { - this.toasts = this.toasts.filter(t => t !== toast); - } - constructor() { } -}