card navigation refactoring

This commit is contained in:
Čarodej
2021-11-23 10:31:45 +01:00
parent b6c77a6685
commit 884c36a5a3
13 changed files with 295 additions and 222 deletions

View File

@@ -2,16 +2,7 @@
<div>
<!--Page Tab links-->
<div class="card shadow-card py-0 sticky top-0 z-10">
<router-link
class="inline-block text-sm font-bold px-4 py-5 border-b-2 border-transparent border-bottom-theme"
:class="{'text-theme': $router.currentRoute.name === page.route, 'text-gray-600': $router.currentRoute.name !== page.route}"
v-for="(page, i) in pages"
:to="{name: page.route}"
:key="i"
replace
>
{{ page.title }}
</router-link>
<CardNavigation :pages="pages" class="-mx-6" />
</div>
<!--Page Content-->
@@ -20,12 +11,13 @@
</template>
<script>
import CardNavigation from "../../../components/Admin/CardNavigation";
import {mapGetters} from 'vuex'
export default {
name: 'AppSettings',
components: {
CardNavigation,
},
computed: {
...mapGetters([