1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

[PS-2841] remove SweetAlert2 dependency (#6191)

* remove swal from app.component

* remove dep

* remove unused swal css
This commit is contained in:
Will Martin
2023-09-11 17:15:27 -04:00
committed by GitHub
parent f999e2cea9
commit 373569833f
12 changed files with 4 additions and 353 deletions

View File

@@ -5,7 +5,6 @@ import { NavigationEnd, Router } from "@angular/router";
import * as jq from "jquery";
import { IndividualConfig, ToastrService } from "ngx-toastr";
import { Subject, takeUntil } from "rxjs";
import Swal from "sweetalert2";
import { EventUploadService } from "@bitwarden/common/abstractions/event/event-upload.service";
import { NotificationsService } from "@bitwarden/common/abstractions/notifications.service";
@@ -204,10 +203,6 @@ export class AppComponent implements OnDestroy, OnInit {
for (const modal of modals) {
(jq(modal) as any).modal("hide");
}
if (document.querySelector(".swal-modal") != null) {
Swal.close(undefined);
}
}
});
@@ -258,7 +253,6 @@ export class AppComponent implements OnDestroy, OnInit {
}
await this.stateService.clean({ userId: userId });
Swal.close();
if (redirect) {
this.router.navigate(["/"]);
}