dont need change detector

This commit is contained in:
Kyle Spearrin 2018-10-03 09:46:00 -04:00
parent 815ef17d02
commit 755e3486ee
3 changed files with 3 additions and 3 deletions

2
jslib

@ -1 +1 @@
Subproject commit 7ae640e5f8de3454fe8279aab2717abd6d12ca42
Subproject commit 6b3dc2344f2db167cbc404d83fa4602a1ca93ef8

View File

@ -107,7 +107,6 @@ export class AppComponent implements OnInit {
} else if (msg.command === 'showToast') {
this.ngZone.run(async () => {
await this.showToast(msg);
this.changeDetectorRef.detectChanges();
});
} else if (msg.command === 'analyticsEventTrack') {
this.analytics.eventTrack.next({

View File

@ -178,7 +178,8 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
return true;
}
showToast(type: 'error' | 'success' | 'warning' | 'info', title: string, text: string, options?: any): void {
showToast(type: 'error' | 'success' | 'warning' | 'info', title: string, text: string | string[],
options?: any): void {
this.messagingService.send('showToast', {
text: text,
title: title,