lavoce #20

Merged
bragaz_rexita merged 5 commits from lavoce into main 2025-11-19 01:05:19 +00:00
Showing only changes of commit 3198b71f7e - Show all commits

View File

@@ -157,12 +157,12 @@ const ListBrandDevice = memo(function ListBrandDevice(props) {
icon: 'question',
title: 'Konfirmasi',
message: 'Apakah anda yakin hapus data "' + param.brand_name + '" ?',
onConfirm: () => handleDelete(param.brand_id),
onConfirm: () => handleDelete(param.brand_id, param.brand_name),
onCancel: () => {},
});
};
const handleDelete = async (brand_id) => {
const handleDelete = async (brand_id, brand_name) => {
try {
const response = await deleteBrand(brand_id);
@@ -170,7 +170,7 @@ const ListBrandDevice = memo(function ListBrandDevice(props) {
NotifOk({
icon: 'success',
title: 'Berhasil',
message: response.message || 'Data Brand Device berhasil dihapus.',
message: `Brand ${brand_name} deleted successfully.`,
});
doFilter(); // Refresh data
} else {