mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-18 17:38:20 +02:00
Add User management features to front-end
This commit is contained in:
35
resources/js/layouts/AdminTabs.vue
Normal file
35
resources/js/layouts/AdminTabs.vue
Normal file
@@ -0,0 +1,35 @@
|
||||
<script setup>
|
||||
const tabs = ref([
|
||||
{
|
||||
'name' : 'admin.app_setup',
|
||||
'view' : 'admin.appSetup',
|
||||
'id' : 'lnkTabApp'
|
||||
},
|
||||
{
|
||||
'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>
|
Reference in New Issue
Block a user