From a49ebf3bd90d960bb1ddaec8fb61c272e45daa20 Mon Sep 17 00:00:00 2001 From: Conor Wright Date: Tue, 10 Apr 2018 12:00:33 -0400 Subject: [PATCH] Got the base toast service functional --- src/modules/toast/toast.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/toast/toast.service.ts b/src/modules/toast/toast.service.ts index 36205dfc5..439058b3c 100644 --- a/src/modules/toast/toast.service.ts +++ b/src/modules/toast/toast.service.ts @@ -54,6 +54,8 @@ export class SkyToastService { this._messages.push(message); this._messageList.next(this._messages); + + return message; } private removeFromQueue: Function = (message: Message) => { @@ -65,7 +67,7 @@ export class SkyToastService { throw 'The supplied message is not active.'; } - this._messages = this._messages.filter(message => message !== message); + this._messages = this._messages.filter(msg => msg !== message); this._messageList.next(this._messages); };