mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 07:13:32 +00:00
implement showToast
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: e0190f14be...e0d5a4d8b7
@@ -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', {
|
||||||
|
|||||||
Reference in New Issue
Block a user