2021-10-29 17:12:58 +02:00
|
|
|
<template>
|
2023-02-01 17:21:55 +01:00
|
|
|
<div class="options-header">
|
2022-10-12 12:56:16 +02:00
|
|
|
<responsive-width-wrapper>
|
|
|
|
<div class="tabs is-centered is-fullwidth">
|
|
|
|
<ul>
|
|
|
|
<li v-for="tab in tabs" :key="tab.view" :class="{ 'is-active': tab.view === activeTab }">
|
|
|
|
<router-link :id="tab.id" :to="{ name: tab.view }">{{ tab.name }}</router-link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2021-10-29 17:12:58 +02:00
|
|
|
</div>
|
2022-10-12 12:56:16 +02:00
|
|
|
</responsive-width-wrapper>
|
2021-10-29 17:12:58 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'SettingTabs',
|
|
|
|
|
|
|
|
data(){
|
|
|
|
return {
|
|
|
|
tabs: [
|
|
|
|
{
|
|
|
|
'name' : this.$t('settings.options'),
|
2022-06-24 09:10:49 +02:00
|
|
|
'view' : 'settings.options',
|
|
|
|
'id' : 'lnkTabOptions'
|
2021-10-29 17:12:58 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'name' : this.$t('settings.account'),
|
2022-06-24 09:10:49 +02:00
|
|
|
'view' : 'settings.account',
|
|
|
|
'id' : 'lnkTabAccount'
|
2021-10-29 17:12:58 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'name' : this.$t('settings.oauth'),
|
2022-06-24 09:10:49 +02:00
|
|
|
'view' : 'settings.oauth.tokens',
|
|
|
|
'id' : 'lnkTabOAuth'
|
2021-10-29 17:12:58 +02:00
|
|
|
},
|
2022-03-15 14:47:07 +01:00
|
|
|
{
|
|
|
|
'name' : this.$t('settings.webauthn'),
|
2022-06-24 09:10:49 +02:00
|
|
|
'view' : 'settings.webauthn.devices',
|
|
|
|
'id' : 'lnkTabWebauthn'
|
2022-03-15 14:47:07 +01:00
|
|
|
},
|
2021-10-29 17:12:58 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
props: {
|
|
|
|
activeTab: {
|
|
|
|
type: String,
|
|
|
|
default: ''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|