This commit is contained in:
2025-03-27 14:33:34 +01:00
parent 7deffc885e
commit 57a4512a0e
8 changed files with 427 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
<script setup>
import {useTempStore} from "~/stores/temp.js";
import FloatingActionButton from "~/components/mobile/FloatingActionButton.vue";
const props = defineProps({
type: {
@@ -9,6 +10,9 @@ const props = defineProps({
items: {
required: true,
type: Array
},
platform: {
required: true,
}
})
@@ -104,6 +108,12 @@ const filteredRows = computed(() => {
</script>
<template>
<FloatingActionButton
:label="`+ ${dataType.labelSingle}`"
variant="outline"
v-if="platform === 'mobile'"
@click="router.push(`/mobile/standardEntity/${type}/create`)"
/>
<UDashboardNavbar :title="dataType.label" :badge="filteredRows.length">
<template #right>
<UInput
@@ -129,7 +139,7 @@ const filteredRows = computed(() => {
/>
<UButton
v-if="useRole().checkRight(`${type}-create`)"
v-if="platform !== 'mobile' && useRole().checkRight(`${type}-create`)"
@click="router.push(`/standardEntity/${type}/create`)"
class="ml-3"
>+ {{dataType.labelSingle}}</UButton>