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 () => {
|
.onOk(async () => {
|
||||||
try {
|
try {
|
||||||
await removeThermograph(id);
|
await removeThermograph(id);
|
||||||
notify(t('Thermograph removed'), 'positive');
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Error removing thermograph');
|
console.error('Error removing thermograph');
|
||||||
}
|
}
|
||||||
|
@ -118,6 +117,7 @@ const removeThermograph = async (id) => {
|
||||||
try {
|
try {
|
||||||
await axios.delete(`Travels/deleteThermograph?id=${id}`);
|
await axios.delete(`Travels/deleteThermograph?id=${id}`);
|
||||||
await thermographPaginateRef.value.fetch();
|
await thermographPaginateRef.value.fetch();
|
||||||
|
notify(t('Thermograph removed'), 'positive');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Error removing termograph');
|
console.error('Error removing termograph');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue