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:
@@ -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(["/"]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user