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:
2
jslib
2
jslib
Submodule jslib updated: 7ae640e5f8...6b3dc2344f
@@ -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({
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user