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

View File

@@ -1,8 +1,9 @@
<template>
<v-card>
<v-card-title
><v-icon class="mr-3">fa-user-tie</v-icon> administrator
</v-card-title>
><v-icon class="mr-3">{{ getIconForPage() }}</v-icon
>{{ name }}</v-card-title
>
<v-row row v-if="this.formState.ready">
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
@@ -96,6 +97,14 @@ export default {
canOpen(otype) {
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) {
return this.eventTypes[event].name;
},