fix:swal button
This commit is contained in:
parent
e48ad4e5f9
commit
048e593670
|
|
@ -48,7 +48,7 @@ export function successRouter(redirect: string, router?: any) {
|
||||||
MySwal.fire({
|
MySwal.fire({
|
||||||
title: "Success!",
|
title: "Success!",
|
||||||
icon: "success",
|
icon: "success",
|
||||||
confirmButtonColor: "#3085d6",
|
confirmButtonColor: "#6642f5",
|
||||||
confirmButtonText: "Ok",
|
confirmButtonText: "Ok",
|
||||||
allowOutsideClick: false,
|
allowOutsideClick: false,
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
|
|
@ -59,15 +59,11 @@ export function successRouter(redirect: string, router?: any) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function success(title: string) {
|
export function success(title: string) {
|
||||||
MySwal.fire({
|
Swal.fire({
|
||||||
title: title || "Success!",
|
title: "Success!",
|
||||||
icon: "success",
|
icon: "success",
|
||||||
confirmButtonColor: "#3085d6",
|
confirmButtonColor: "#6642f5",
|
||||||
confirmButtonText: "OK",
|
confirmButtonText: "OK",
|
||||||
}).then((result) => {
|
|
||||||
if (result.isConfirmed) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -112,3 +112,10 @@ main {
|
||||||
.custom-button {
|
.custom-button {
|
||||||
color: black !important;
|
color: black !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.swal2-confirm {
|
||||||
|
background-color: #4275f5 !important;
|
||||||
|
}
|
||||||
|
.swal2-cancel {
|
||||||
|
background-color: #d33 !important;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue