2018-08-13 18:05:58 +02:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<nav>
|
|
|
|
<ul>
|
2018-08-13 18:24:46 +02:00
|
|
|
<li @click="nav('dashboard')" :class="{ active: page == 'dashboard' }">%i18n:@dashboard%</li>
|
2018-08-13 18:05:58 +02:00
|
|
|
<li @click="nav('drive')" :class="{ active: page == 'drive' }">%i18n:@drive%</li>
|
|
|
|
<li @click="nav('users')" :class="{ active: page == 'users' }">%i18n:@users%</li>
|
|
|
|
<li @click="nav('update')" :class="{ active: page == 'update' }">%i18n:@update%</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
<main>
|
|
|
|
<div v-if="page == 'dashboard'">
|
|
|
|
<x-dashboard/>
|
|
|
|
</div>
|
|
|
|
<div v-if="page == 'drive'"></div>
|
|
|
|
<div v-if="page == 'users'">
|
|
|
|
<x-suspend-user/>
|
|
|
|
</div>
|
|
|
|
<div v-if="page == 'update'"></div>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from "vue";
|
|
|
|
import XDashboard from "./admin.dashboard.vue";
|
|
|
|
import XSuspendUser from "./admin.suspend-user.vue";
|
|
|
|
|
|
|
|
export default Vue.extend({
|
2018-08-13 18:24:46 +02:00
|
|
|
components: {
|
2018-08-13 18:05:58 +02:00
|
|
|
XDashboard,
|
2018-08-13 18:24:46 +02:00
|
|
|
XSuspendUser
|
2018-08-13 18:35:36 +02:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
page: 'dashboard'
|
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
nav(page: string) {
|
|
|
|
this.page = page;
|
|
|
|
}
|
2018-08-13 18:24:46 +02:00
|
|
|
}
|
2018-08-13 18:05:58 +02:00
|
|
|
});
|
|
|
|
</script>
|