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