fix: refs #4774 fix vnConfirm
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Carlos Satorres 2024-11-11 08:51:55 +01:00
parent 11afabbaf8
commit ffe6e73b63
1 changed files with 11 additions and 9 deletions

View File

@ -8,6 +8,8 @@ import axios from 'axios';
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
import FetchData from 'src/components/FetchData.vue';
import VnInput from 'src/components/common/VnInput.vue';
import { useVnConfirm } from 'composables/useVnConfirm';
const { openConfirmationModal } = useVnConfirm();
const { t } = useI18n();
const columns = computed(() => [
@ -57,6 +59,8 @@ const columns = computed(() => [
),
() => removeLine(row.id)
),
disable: (row) => row.id,
},
],
},
@ -117,15 +121,13 @@ async function upsertI18n(data) {
data.hasChanges = false;
}
// async function removeLine(id) {
// try {
// await axios.delete(`TicketRequests/${id}`);
// notify(t('globals.dataSaved'), 'positive');
// location.reload();
// } catch (err) {
// console.error('Error ', err);
// }
// }
async function removeLine(id) {
try {
console.log({ id }, 'eliminado');
} catch (err) {
console.error('Error ', err);
}
}
</script>
<template>