This commit is contained in:
2020-04-11 16:22:55 +00:00
parent c765272761
commit 84cedd7564
3 changed files with 53 additions and 40 deletions

View File

@@ -65,7 +65,7 @@ todo: RECORD HISTORY (HAS OUTSTANDING ITEMS)
- make a todo entry in the report section below to include the ability of feeding reports from local data in addition to off the server - make a todo entry in the report section below to include the ability of feeding reports from local data in addition to off the server
- Does it benefit from caching? (not really thinking so as this is a different animal than search but something to ponder a bit) - Does it benefit from caching? (not really thinking so as this is a different animal than search but something to ponder a bit)
todo: can page titles be improved so in task bar can see what is being worked with in that browser window
todo: Translate all ayatypes not translated todo: Translate all ayatypes not translated

View File

@@ -14,6 +14,9 @@ export default {
vm.appBar.icon = ctx.icon; vm.appBar.icon = ctx.icon;
vm.appBar.title = ctx.title; vm.appBar.title = ctx.title;
//test
document.title = "AyaNova " + ctx.title;
//Parse the formdata if present //Parse the formdata if present
//FORMDATA is OPTIONAL and only required for forms that need to allow //FORMDATA is OPTIONAL and only required for forms that need to allow
//viewing object history, attachments, custom fields, etc that kind of thing //viewing object history, attachments, custom fields, etc that kind of thing

View File

@@ -1,6 +1,11 @@
<template> <template>
<v-card>
<v-card-title
><v-icon class="mr-3">fa-user-tie</v-icon> administrator
</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>
<v-col rows="12"> <v-col rows="12">
<v-timeline :dense="$vuetify.breakpoint.smAndDown"> <v-timeline :dense="$vuetify.breakpoint.smAndDown">
<v-timeline-item <v-timeline-item
@@ -15,7 +20,8 @@
><v-icon class="mr-4">{{ ><v-icon class="mr-4">{{
getIconForObjectType(i.objectType) getIconForObjectType(i.objectType)
}}</v-icon }}</v-icon
><span class="mr-4"></span><span>{{ i.name }}</span></v-card-title ><span class="mr-4"></span
><span>{{ i.name }}</span></v-card-title
> >
<v-card-subtitle>{{ <v-card-subtitle>{{
getNameForType(i.objectType) getNameForType(i.objectType)
@@ -37,6 +43,7 @@
</v-col> </v-col>
<div>{{ obj }}</div> <div>{{ obj }}</div>
</v-row> </v-row>
</v-card>
</template> </template>
<script> <script>
@@ -66,6 +73,7 @@ export default {
data() { data() {
return { return {
obj: [], obj: [],
name: null,
eventTypes: {}, eventTypes: {},
ayaTypes: {}, ayaTypes: {},
lastOffset: 0, lastOffset: 0,
@@ -164,7 +172,8 @@ export default {
window.$gz.form.setErrorBoxErrors(vm); window.$gz.form.setErrorBoxErrors(vm);
} else { } else {
//TODO: PAGING update last offset //TODO: PAGING update last offset
let temp = res.data; vm.name = res.data.name;
let temp = res.data.events;
let timeZoneName = window.$gz.locale.getBrowserTimeZoneName(); let timeZoneName = window.$gz.locale.getBrowserTimeZoneName();
let languageName = window.$gz.locale.getBrowserLanguages(); let languageName = window.$gz.locale.getBrowserLanguages();
let hour12 = window.$gz.store.state.locale.hour12; let hour12 = window.$gz.store.state.locale.hour12;
@@ -192,7 +201,7 @@ export default {
readOnly: res.readOnly ? true : false readOnly: res.readOnly ? true : false
}); });
//modify the menu as necessary //modify the menu as necessary
generateMenu(vm); // generateMenu(vm);
} }
}) })
.catch(function handleGetDataFromAPIError(error) { .catch(function handleGetDataFromAPIError(error) {
@@ -237,6 +246,7 @@ function generateMenu(vm) {
helpUrl: "form-ay-history", helpUrl: "form-ay-history",
menuItems: [] menuItems: []
}; };
window.$gz.eventBus.$emit("menu-change", menuOptions);
} }
///////////////////////////////// /////////////////////////////////
// //