2023-10-04 09:30:05 +02:00
|
|
|
<script setup>
|
|
|
|
const tabs = ref([
|
|
|
|
{
|
2023-11-15 15:37:58 +01:00
|
|
|
'name' : 'settings.options',
|
2023-10-04 09:30:05 +02:00
|
|
|
'view' : 'settings.options',
|
|
|
|
'id' : 'lnkTabOptions'
|
|
|
|
},
|
2023-10-05 17:04:51 +02:00
|
|
|
{
|
2023-11-15 15:37:58 +01:00
|
|
|
'name' : 'settings.account',
|
2023-10-05 17:04:51 +02:00
|
|
|
'view' : 'settings.account',
|
|
|
|
'id' : 'lnkTabAccount'
|
|
|
|
},
|
2023-10-06 10:45:10 +02:00
|
|
|
{
|
2023-11-15 15:37:58 +01:00
|
|
|
'name' : 'settings.oauth',
|
2023-10-06 10:45:10 +02:00
|
|
|
'view' : 'settings.oauth.tokens',
|
|
|
|
'id' : 'lnkTabOAuth'
|
|
|
|
},
|
2023-10-05 14:09:04 +02:00
|
|
|
{
|
2023-11-15 15:37:58 +01:00
|
|
|
'name' : 'settings.webauthn',
|
2023-10-05 14:09:04 +02:00
|
|
|
'view' : 'settings.webauthn.devices',
|
|
|
|
'id' : 'lnkTabWebauthn'
|
|
|
|
},
|
2023-10-04 09:30:05 +02:00
|
|
|
])
|
|
|
|
|
|
|
|
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 }">
|
2023-11-15 15:37:58 +01:00
|
|
|
<RouterLink :id="tab.id" :to="{ name: tab.view }">{{ $t(tab.name) }}</RouterLink>
|
2023-10-04 09:30:05 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</ResponsiveWidthWrapper>
|
|
|
|
</div>
|
|
|
|
</template>
|