|
|
|
@ -180,7 +180,7 @@ const ChecklistK3 = ({ params }) => {
|
|
|
|
|
|
|
|
|
|
if (result && result.data && result.data.code === 200) { |
|
|
|
|
getDataChecklistK3() |
|
|
|
|
NotificationManager.success(`Data project type berhasil ditambah`, 'Success!!'); |
|
|
|
|
NotificationManager.success(`Checklist K3 berhasil disimpan!`, 'Success!!'); |
|
|
|
|
} else { |
|
|
|
|
NotificationManager.error(`${result.data.message}`, 'Failed!!'); |
|
|
|
|
} |
|
|
|
@ -196,9 +196,9 @@ const ChecklistK3 = ({ params }) => {
|
|
|
|
|
|
|
|
|
|
if (result && result.data && result.data.code === 200) { |
|
|
|
|
getDataChecklistK3(); |
|
|
|
|
NotificationManager.success(`Data project type berhasil diedit`, 'Success!!'); |
|
|
|
|
NotificationManager.success(`Checklist K3 berhasil diubah`, 'Success!!'); |
|
|
|
|
} else { |
|
|
|
|
NotificationManager.error(`Data project type gagal di edit`, `Failed!!`); |
|
|
|
|
NotificationManager.error(`Checklist K3 gagal diubah`, `Failed!!`); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -217,11 +217,11 @@ const ChecklistK3 = ({ params }) => {
|
|
|
|
|
getDataChecklistK3() |
|
|
|
|
setIdDelete(0) |
|
|
|
|
setAlertDelete(false) |
|
|
|
|
NotificationManager.success(`Data project type berhasil dihapus!`, 'Success!!'); |
|
|
|
|
NotificationManager.success(`Checklist K3 berhasil dihapus!`, 'Success!!'); |
|
|
|
|
} else { |
|
|
|
|
setIdDelete(0) |
|
|
|
|
setAlertDelete(false) |
|
|
|
|
NotificationManager.error(`Data project type gagal dihapus!}`, 'Failed!!'); |
|
|
|
|
NotificationManager.error(`Checklist K3 gagal dihapus!}`, 'Failed!!'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|