diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index d87c08395..4aa49ce38 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -472,6 +472,7 @@ function handleOnDataSaved(_) { auto-width class="no-margin q-px-xs" :class="[getColAlign(col), col.columnClass]" + :style="col.style" v-if="col.visible ?? true" @click.ctrl=" ($event) => @@ -500,6 +501,7 @@ function handleOnDataSaved(_) { :class="getColAlign(col)" class="sticky no-padding" @click="stopEventPropagation($event)" + :style="col.style" > [ field: 'concept', cardVisible: true, }, + { + align: 'right', + name: 'tableActions', + style: 'max-width: 20px; text-align: initial;', + actions: [ + { + title: t('delete'), + icon: 'delete', + action: async (row) => await tableRef.value.CrudModelRef.remove([row]), + isPrimary: true, + }, + ], + }, ]); - - es: - Create workerBalance: Crear balance + Create balance: Crear balance diff --git a/src/pages/Worker/Card/WorkerFormation.vue b/src/pages/Worker/Card/WorkerFormation.vue index 71c5cba5d..c11dd019e 100644 --- a/src/pages/Worker/Card/WorkerFormation.vue +++ b/src/pages/Worker/Card/WorkerFormation.vue @@ -96,10 +96,23 @@ const columns = computed(() => [ label: t('worker.formation.tableVisibleColumns.hasDiploma'), create: true, }, + { + align: 'right', + name: 'tableActions', + actions: [ + { + title: t('delete'), + icon: 'delete', + action: async (row) => await tableRef.value.CrudModelRef.remove([row]), + isPrimary: true, + }, + ], + }, ]); + es: Create training course: Crear curso de formaciĆ³n diff --git a/src/pages/Worker/Card/WorkerMedical.vue b/src/pages/Worker/Card/WorkerMedical.vue index 6bca4ae85..fab1416c9 100644 --- a/src/pages/Worker/Card/WorkerMedical.vue +++ b/src/pages/Worker/Card/WorkerMedical.vue @@ -65,6 +65,18 @@ const columns = [ create: true, component: 'input', }, + { + align: 'right', + name: 'tableActions', + actions: [ + { + title: t('delete'), + icon: 'delete', + action: async (row) => await tableRef.value.CrudModelRef.remove([row]), + isPrimary: true, + }, + ], + }, ];