fix:swal button

This commit is contained in:
Rama Priyanto 2025-04-28 11:39:51 +07:00
parent e48ad4e5f9
commit 048e593670
2 changed files with 11 additions and 8 deletions

View File

@ -48,7 +48,7 @@ export function successRouter(redirect: string, router?: any) {
MySwal.fire({
title: "Success!",
icon: "success",
confirmButtonColor: "#3085d6",
confirmButtonColor: "#6642f5",
confirmButtonText: "Ok",
allowOutsideClick: false,
}).then((result) => {
@ -59,15 +59,11 @@ export function successRouter(redirect: string, router?: any) {
}
export function success(title: string) {
MySwal.fire({
title: title || "Success!",
Swal.fire({
title: "Success!",
icon: "success",
confirmButtonColor: "#3085d6",
confirmButtonColor: "#6642f5",
confirmButtonText: "OK",
}).then((result) => {
if (result.isConfirmed) {
return true;
}
});
}

View File

@ -112,3 +112,10 @@ main {
.custom-button {
color: black !important;
}
.swal2-confirm {
background-color: #4275f5 !important;
}
.swal2-cancel {
background-color: #d33 !important;
}