1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

implement showToast

This commit is contained in:
Kyle Spearrin
2018-05-31 14:42:59 -04:00
parent e066665f94
commit 324ea5114d
2 changed files with 5 additions and 1 deletions

2
jslib

Submodule jslib updated: e0190f14be...e0d5a4d8b7

View File

@@ -169,6 +169,10 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
return true; return true;
} }
showToast(type: 'error' | 'success' | 'warning' | 'info', title: string, text: string, global?: any): void {
throw new Error('showToast not implemented');
}
showDialog(text: string, title?: string, confirmText?: string, cancelText?: string, type?: string) { showDialog(text: string, title?: string, confirmText?: string, cancelText?: string, type?: string) {
const dialogId = Math.floor(Math.random() * Number.MAX_SAFE_INTEGER); const dialogId = Math.floor(Math.random() * Number.MAX_SAFE_INTEGER);
this.messagingService.send('showDialog', { this.messagingService.send('showDialog', {