Skip to content

Commit

Permalink
fix(message-service) Attempt to fix Issue #194
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Étienne Lord authored and mbarbeau committed Oct 17, 2018
1 parent 5de0afb commit 6e09cb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/core/src/lib/message/shared/message.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Injectable } from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
import { BehaviorSubject } from 'rxjs';
import { Notification, NotificationsService } from 'angular2-notifications';
import { Notification, NotificationsService, NotificationType} from 'angular2-notifications';

import { ConfigService } from '../../config/config.service';

Expand Down Expand Up @@ -38,7 +38,7 @@ export class MessageService {
notification = this.notificationService.create(
message.title,
message.text,
(message.type as any) as string,
(message.type as any) as NotificationType,
message.options
);
} else if (message.html) {
Expand All @@ -50,7 +50,7 @@ export class MessageService {

notification = this.notificationService.html(
message.html,
(message.type as any) as string,
(message.type as any) as NotificationType,
message.options
);
} else {
Expand Down

0 comments on commit 6e09cb2

Please sign in to comment.