1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Expand encrypted export warning (#866)

* Add additional warnings about encrypted export

* Allow html body in showDialog
This commit is contained in:
Thomas Rittson
2021-03-05 06:56:25 +10:00
committed by GitHub
parent 722bcfc31b
commit 473dd8739a
2 changed files with 8 additions and 3 deletions

View File

@@ -179,7 +179,8 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
});
}
async showDialog(text: string, title?: string, confirmText?: string, cancelText?: string, type?: string) {
async showDialog(body: string, title?: string, confirmText?: string, cancelText?: string, type?: string,
bodyIsHtml: boolean = false) {
let iconClasses: string = null;
if (type != null) {
// If you add custom types to this part, the type to SweetAlertIcon cast below needs to be changed.
@@ -207,7 +208,8 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
buttonsStyling: false,
icon: type as SweetAlertIcon, // required to be any of the SweetAlertIcons to output the iconHtml.
iconHtml: iconHtmlStr,
text: text,
text: bodyIsHtml ? null : body,
html: bodyIsHtml ? body : null,
title: title,
showCancelButton: (cancelText != null),
cancelButtonText: cancelText,