Browse Source

change alert notification & payload

pull/2/head
wahyuun 1 year ago
parent
commit
9bbaff4941
  1. 16
      src/views/SimproV2/Satuan/index.js

16
src/views/SimproV2/Satuan/index.js

@ -72,12 +72,6 @@ const Satuan = ({ params }) => {
"logic_operator": "ilike",
"value": search,
"operator": "AND"
},
{
"name": "description",
"logic_operator": "ilike",
"value": search,
"operator": "AND"
}
],
"orders": {
@ -181,7 +175,7 @@ const Satuan = ({ params }) => {
if (result && result.data && result.data.code === 200) {
getDataSatuan()
NotificationManager.success(`Data project type berhasil ditambah`, 'Success!!');
NotificationManager.success(`Satuan berhasil ditambah`, 'Success!!');
} else {
NotificationManager.error(`${result.data.message}`, 'Failed!!');
}
@ -197,9 +191,9 @@ const Satuan = ({ params }) => {
if (result && result.data && result.data.code === 200) {
getDataSatuan();
NotificationManager.success(`Data project type berhasil diedit`, 'Success!!');
NotificationManager.success(`Satuan berhasil diubah`, 'Success!!');
} else {
NotificationManager.error(`Data project type gagal di edit`, `Failed!!`);
NotificationManager.error(`Satuan gagal diubah`, `Failed!!`);
}
}
@ -218,11 +212,11 @@ const Satuan = ({ params }) => {
getDataSatuan()
setIdDelete(0)
setAlertDelete(false)
NotificationManager.success(`Data project type berhasil dihapus!`, 'Success!!');
NotificationManager.success(`Satuan berhasil dihapus!`, 'Success!!');
} else {
setIdDelete(0)
setAlertDelete(false)
NotificationManager.error(`Data project type gagal dihapus!}`, 'Failed!!');
NotificationManager.error(`Satuan gagal dihapus!}`, 'Failed!!');
}
}

Loading…
Cancel
Save