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 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>