This commit is contained in:
@@ -49,14 +49,6 @@ SHELL / NAV / MENUS / LAYOUT
|
|||||||
|
|
||||||
|
|
||||||
TODO: STUB OUT MENU ITEMS MISSING
|
TODO: STUB OUT MENU ITEMS MISSING
|
||||||
- PUT SEARCH into main menu, it's constantly there like help with the source as part of the data sent with the click
|
|
||||||
- I.E. source could be widget from list or widget entry form and so user is searching widgets or source could be a main page where there is no source so it's empty and search everything
|
|
||||||
- User clicks on search, it opens a main search form view which is also accessible under HOME section normally so two ways to get there
|
|
||||||
- PUT SEARCH into HOME section as a main form (make sure it has no search button on *it's* menu)
|
|
||||||
- Search page allows to select types of objects in an array (maybe, did I code the server that way or single at a time object type)
|
|
||||||
- Also tags can be selected
|
|
||||||
- Object type and tag sb clearable with easy single clicks to speed up searching.
|
|
||||||
- Results are in standard grid list which is sortable or printable or openable to records etc
|
|
||||||
|
|
||||||
- WIKI
|
- WIKI
|
||||||
- In Widget edit form
|
- In Widget edit form
|
||||||
|
|||||||
@@ -17,10 +17,16 @@ export default {
|
|||||||
vm.appBar.icon = ctx.icon;
|
vm.appBar.icon = ctx.icon;
|
||||||
vm.appBar.title = ctx.title;
|
vm.appBar.title = ctx.title;
|
||||||
|
|
||||||
//Parse the forms object type if present
|
//Parse the formdata if present
|
||||||
var formAyaType = 0;
|
var formAyaType = 0;
|
||||||
if (ctx.formData && ctx.formData.ayaType != undefined) {
|
var formRecordId = 0;
|
||||||
formAyaType = ctx.formData.ayaType;
|
if (ctx.formData) {
|
||||||
|
if (ctx.formData.ayaType != undefined) {
|
||||||
|
formAyaType = ctx.formData.ayaType;
|
||||||
|
}
|
||||||
|
if (ctx.formData.ayaType != undefined) {
|
||||||
|
formRecordId = ctx.formData.recordId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//set the help url if presented or default to the User section intro
|
//set the help url if presented or default to the User section intro
|
||||||
@@ -37,6 +43,16 @@ export default {
|
|||||||
vm.appBar.menuItems.push({ divider: true, inset: false });
|
vm.appBar.menuItems.push({ divider: true, inset: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//WIKI
|
||||||
|
if (formRecordId != 0) {
|
||||||
|
vm.appBar.menuItems.push({
|
||||||
|
title: window.$gz.locale.get("WikiPage"),
|
||||||
|
icon: "feather",
|
||||||
|
key: "app:wiki",
|
||||||
|
data: { ayaType: formAyaType, recordId: formRecordId }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
//GLOBAL BOTTOM PORTION
|
//GLOBAL BOTTOM PORTION
|
||||||
|
|
||||||
//Global sub-heading
|
//Global sub-heading
|
||||||
|
|||||||
@@ -4,7 +4,18 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import UnderConstruction from "../components/underconstruction.vue";
|
import UnderConstruction from "../components/underconstruction.vue";
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* - PUT SEARCH into main menu, it's constantly there like help with the source as part of the data sent with the click
|
||||||
|
- I.E. source could be widget from list or widget entry form and so user is searching widgets or source could be a main page where there is no source so it's empty and search everything
|
||||||
|
- User clicks on search, it opens a main search form view which is also accessible under HOME section normally so two ways to get there
|
||||||
|
- PUT SEARCH into HOME section as a main form (make sure it has no search button on *it's* menu)
|
||||||
|
- Search page allows to select types of objects in an array (maybe, did I code the server that way or single at a time object type)
|
||||||
|
- Also tags can be selected
|
||||||
|
- Object type and tag sb clearable with easy single clicks to speed up searching.
|
||||||
|
- Results are in standard grid list which is sortable or printable or openable to records etc
|
||||||
|
*
|
||||||
|
*/
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
UnderConstruction
|
UnderConstruction
|
||||||
|
|||||||
@@ -649,6 +649,7 @@ function generateMenu(vm) {
|
|||||||
formData: {
|
formData: {
|
||||||
formKey: FORM_KEY,
|
formKey: FORM_KEY,
|
||||||
ayaType: window.$gz.type.Widget,
|
ayaType: window.$gz.type.Widget,
|
||||||
|
recordId: vm.$route.params.id,
|
||||||
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY
|
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY
|
||||||
},
|
},
|
||||||
menuItems: []
|
menuItems: []
|
||||||
|
|||||||
Reference in New Issue
Block a user