Adjust thermograph notify
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
William Buezas 2024-02-08 08:26:36 -03:00
parent 770f17a362
commit f24b9f5a75
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}