This commit is contained in:
2020-04-09 22:42:29 +00:00
parent 20cb6a5cf4
commit baadc9c3c2
4 changed files with 8 additions and 5 deletions

View File

@@ -49,8 +49,6 @@ CURRENT TODOs
@@@@@@@@@@@ ROADMAP STAGE 2:
todo: HUGE layout - go through all forms set browser to 4k ultra hd and see where things line up
todo: widgets list form needs search link
todo: if (res.error != undefined) could be changed to if(res.error) everywhere

View File

@@ -122,7 +122,8 @@ export default {
vm.appBar.menuItems.push({ divider: true, inset: false });
//SEARCH
if (isCoreBizObject && ctx.icon != "fa-search") {
//all forms except the search form
if (ctx.icon != "fa-search") {
//For all forms but not on the search form itself; if this is necessary for others then make a nosearch or something flag controlled by incoming ctx but if not then this should suffice
vm.appBar.menuItems.push({
title: window.$gz.translation.get("Search"),

View File

@@ -124,6 +124,7 @@ export default {
vm.formState.ready = true;
window.$gz.eventBus.$on("menu-click", clickHandler);
generateMenu(vm);
if (vm.$route.params.ayatype) {
vm.searchObjectType = vm.$route.params.ayatype;
}
@@ -135,7 +136,7 @@ export default {
if (savedSettings && savedSettings.temp) {
savedSettings = savedSettings.temp;
if (
vm.searchObjectType == 0 ||
vm.searchObjectType == null ||
vm.searchObjectType == savedSettings.ayaType
) {
//same type or no type so go ahead and rehydrate

View File

@@ -76,7 +76,10 @@ function generateMenu(vm) {
icon: "fa-vial",
title: vm.$ay.t("WidgetList"),
helpUrl: "form-ay-data-list-view",
menuItems: []
menuItems: [],
formData: {
ayaType: window.$gz.type.Widget
}
};
if (vm.rights.change) {