mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 16:22:16 +01:00
add jetstream permissions, add dynamic inertia module loading, add shadcn components, change modals and dropdowns to shadcn dismissable layer,
38 lines
1012 B
Vue
38 lines
1012 B
Vue
<script setup lang="ts">
|
|
import { router } from '@inertiajs/vue3';
|
|
import TabBar from '@/Components/Common/TabBar/TabBar.vue';
|
|
import TabBarItem from '@/Components/Common/TabBar/TabBarItem.vue';
|
|
import {canViewReport} from "@/utils/permissions";
|
|
import {computed} from "vue";
|
|
defineProps<{
|
|
active: 'reporting' | 'detailed' | 'shared';
|
|
}>();
|
|
|
|
const showSharedReports = computed(() => canViewReport());
|
|
</script>
|
|
|
|
<template>
|
|
<TabBar
|
|
:model-value="active"
|
|
>
|
|
<TabBarItem
|
|
value="reporting"
|
|
@click="router.visit(route('reporting'))"
|
|
>Overview</TabBarItem
|
|
>
|
|
<TabBarItem
|
|
value="detailed"
|
|
@click="router.visit(route('reporting.detailed'))"
|
|
>Detailed</TabBarItem
|
|
>
|
|
<TabBarItem
|
|
v-if="showSharedReports"
|
|
value="shared"
|
|
@click="router.visit(route('reporting.shared'))"
|
|
>Shared</TabBarItem
|
|
>
|
|
</TabBar>
|
|
</template>
|
|
|
|
<style scoped></style>
|