Adjust thermograph notify
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
770f17a362
commit
f24b9f5a75
|
@ -94,7 +94,6 @@ const openRemoveDialog = async (id) => {
|
|||
.onOk(async () => {
|
||||
try {
|
||||
await removeThermograph(id);
|
||||
notify(t('Thermograph removed'), 'positive');
|
||||
} catch (err) {
|
||||
console.error('Error removing thermograph');
|
||||
}
|
||||
|
@ -118,6 +117,7 @@ const removeThermograph = async (id) => {
|
|||
try {
|
||||
await axios.delete(`Travels/deleteThermograph?id=${id}`);
|
||||
await thermographPaginateRef.value.fetch();
|
||||
notify(t('Thermograph removed'), 'positive');
|
||||
} catch (err) {
|
||||
console.error('Error removing termograph');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue