changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user