This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user