8627-devToTest #1421

Merged
alexm merged 768 commits from 8627-devToTest into test 2025-02-18 12:37:37 +00:00
1 changed files with 15 additions and 1 deletions
Showing only changes of commit d40b6fb06b - Show all commits

View File

@ -1,11 +1,25 @@
<script setup>
import VnLv from 'src/components/ui/VnLv.vue';
import CardDescriptor from 'components/ui/CardDescriptor.vue';
import axios from 'axios';
</script>
<template>
<CardDescriptor module="Vehicle" data-key="Vehicle" title="numberPlate">
<template #menu="{ entity }">
<QItem v-ripple clickable @click="axios.delete(`Vehicles/${entity.id}`)">
<QItem
v-ripple
clickable
@click="
async () => {
try {
await axios.delete(`Vehicles/${entity.id}`);
$router.push({ name: 'VehicleList' });
} catch (e) {
throw e;
}
}
"
>
<QItemSection>
{{ $t('vehicle.delete') }}
</QItemSection>