2024-01-29 08:55:56 +01:00
|
|
|
<script setup>
|
|
|
|
const tabs = ref([
|
|
|
|
{
|
|
|
|
'name' : 'admin.app_setup',
|
|
|
|
'view' : 'admin.appSetup',
|
|
|
|
'id' : 'lnkTabApp'
|
|
|
|
},
|
2024-09-20 08:10:20 +02:00
|
|
|
{
|
|
|
|
'name' : 'admin.auth',
|
|
|
|
'view' : 'admin.auth',
|
|
|
|
'id' : 'lnkTabAuth'
|
|
|
|
},
|
2024-01-29 08:55:56 +01:00
|
|
|
{
|
|
|
|
'name' : 'admin.users',
|
|
|
|
'view' : 'admin.users',
|
|
|
|
'id' : 'lnkTabUsers'
|
|
|
|
},
|
|
|
|
])
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
activeTab: {
|
|
|
|
type: String,
|
|
|
|
default: ''
|
|
|
|
},
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="options-header">
|
|
|
|
<ResponsiveWidthWrapper>
|
|
|
|
<div class="tabs is-centered is-fullwidth">
|
|
|
|
<ul>
|
|
|
|
<li v-for="tab in tabs" :key="tab.view" :class="{ 'is-active': tab.view === props.activeTab }">
|
|
|
|
<RouterLink :id="tab.id" :to="{ name: tab.view }">{{ $t(tab.name) }}</RouterLink>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</ResponsiveWidthWrapper>
|
|
|
|
</div>
|
|
|
|
</template>
|