Changes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user