This commit is contained in:
Viet An
2026-05-20 15:48:05 +07:00
parent 087b05a0b8
commit a52c33706a
20 changed files with 86 additions and 106 deletions

View File

@@ -76,11 +76,11 @@ async function confirmChange() {
);
if (result === "error" || !result) {
$snackbar("Cập nhật thất bại", "Lỗi", "Error");
$snackbar("Cập nhật thất bại", "Error");
return;
}
$snackbar("Cập nhật trạng thái thành công", "Thành công", "Success");
$snackbar("Cập nhật trạng thái thành công", "Success");
// Phát sự kiện để component cha (hoặc bảng) cập nhật lại dữ liệu
emit("modalevent", {
@@ -94,7 +94,7 @@ async function confirmChange() {
close();
} catch (error) {
console.error("Lỗi đổi trạng thái:", error);
$snackbar("Có lỗi xảy ra", "Lỗi", "Error");
$snackbar("Có lỗi xảy ra", "Error");
} finally {
isSaving.value = false;
}