fix Admin tab icons and first load

This commit is contained in:
lesion 2022-05-31 15:23:58 +02:00
parent 6173ea96fc
commit cdfbd01a07
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -1,8 +1,9 @@
<template lang="pug"> <template lang="pug">
v-container.container.pa-0.pa-md-3 v-container.container.pa-0.pa-md-3
v-card v-card
v-alert(v-if='url!==settings.baseurl' outlined type='warning' color='red' show-icon :icon='mdiAlert' v-html="$t('admin.wrong_domain_warning', { url, baseurl: settings.baseurl })") v-alert(v-if='url!==settings.baseurl' outlined type='warning' color='red' show-icon :icon='mdiAlert')
v-tabs(v-model='selectedTab' show-arrows) span(v-html="$t('admin.wrong_domain_warning', { url, baseurl: settings.baseurl })")
v-tabs(v-model='selectedTab' show-arrows :next-icon='mdiChevronRight' :prev-icon='mdiChevronLeft')
//- SETTINGS //- SETTINGS
v-tab {{$t('common.settings')}} v-tab {{$t('common.settings')}}
@ -55,7 +56,7 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { mdiAlert } from '@mdi/js' import { mdiAlert, mdiChevronRight, mdiChevronLeft } from '@mdi/js'
export default { export default {
name: 'Admin', name: 'Admin',
@ -64,7 +65,7 @@ export default {
Events: () => import(/* webpackChunkName: "admin" */'../components/admin/Events'), Events: () => import(/* webpackChunkName: "admin" */'../components/admin/Events'),
Places: () => import(/* webpackChunkName: "admin" */'../components/admin/Places'), Places: () => import(/* webpackChunkName: "admin" */'../components/admin/Places'),
Cohorts: () => import(/* webpackChunkName: "admin" */'../components/admin/Cohorts'), Cohorts: () => import(/* webpackChunkName: "admin" */'../components/admin/Cohorts'),
Settings: () => import(/* webpackChunkName: "admin" */'../components/admin/Settings'), Settings: () => import('../components/admin/Settings'),
Federation: () => import(/* webpackChunkName: "admin" */'../components/admin/Federation.vue'), Federation: () => import(/* webpackChunkName: "admin" */'../components/admin/Federation.vue'),
Moderation: () => import(/* webpackChunkName: "admin" */'../components/admin/Moderation.vue'), Moderation: () => import(/* webpackChunkName: "admin" */'../components/admin/Moderation.vue'),
Announcement: () => import(/* webpackChunkName: "admin" */'../components/admin/Announcement.vue'), Announcement: () => import(/* webpackChunkName: "admin" */'../components/admin/Announcement.vue'),
@ -88,8 +89,8 @@ export default {
}, },
data () { data () {
return { return {
mdiAlert, mdiChevronRight, mdiChevronLeft,
users: [], users: [],
mdiAlert,
description: '', description: '',
unconfirmedEvents: [], unconfirmedEvents: [],
selectedTab: 0 selectedTab: 0