1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

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

Submodule jslib updated: 7ae640e5f8...6b3dc2344f

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,