123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <script setup>
- const tabs = ref([
- {
- 'name' : wTrans('settings.options'),
- 'view' : 'settings.options',
- 'id' : 'lnkTabOptions'
- },
- // {
- // 'name' : wTrans('settings.account'),
- // 'view' : 'settings.account',
- // 'id' : 'lnkTabAccount'
- // },
- // {
- // 'name' : wTrans('settings.oauth'),
- // 'view' : 'settings.oauth.tokens',
- // 'id' : 'lnkTabOAuth'
- // },
- // {
- // 'name' : wTrans('settings.webauthn'),
- // 'view' : 'settings.webauthn.devices',
- // 'id' : 'lnkTabWebauthn'
- // },
- ])
- 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 }">{{ tab.name }}</RouterLink>
- </li>
- </ul>
- </div>
- </ResponsiveWidthWrapper>
- </div>
- </template>
|