This commit is contained in:
2020-04-11 17:59:19 +00:00
parent 84cedd7564
commit a1266a26f5

View File

@@ -1,8 +1,9 @@
<template> <template>
<v-card> <v-card>
<v-card-title <v-card-title
><v-icon class="mr-3">fa-user-tie</v-icon> administrator ><v-icon class="mr-3">{{ getIconForPage() }}</v-icon
</v-card-title> >{{ name }}</v-card-title
>
<v-row row v-if="this.formState.ready"> <v-row row v-if="this.formState.ready">
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error> <gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
@@ -96,6 +97,14 @@ export default {
canOpen(otype) { canOpen(otype) {
return this.ayaTypes[otype].canopen; return this.ayaTypes[otype].canopen;
}, },
getIconForPage() {
let vm = this;
if (vm.$route.params.userlog) {
return vm.ayaTypes[window.$gz.type.User].icon;
} else {
return vm.ayaTypes[vm.$route.params.ayatype].icon;
}
},
getEventName(event) { getEventName(event) {
return this.eventTypes[event].name; return this.eventTypes[event].name;
}, },