This commit is contained in:
2019-12-30 21:01:31 +00:00
parent f3f2987550
commit ce7789f949
4 changed files with 32 additions and 12 deletions

View File

@@ -17,10 +17,16 @@ export default {
vm.appBar.icon = ctx.icon;
vm.appBar.title = ctx.title;
//Parse the forms object type if present
//Parse the formdata if present
var formAyaType = 0;
if (ctx.formData && ctx.formData.ayaType != undefined) {
formAyaType = ctx.formData.ayaType;
var formRecordId = 0;
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
@@ -37,6 +43,16 @@ export default {
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 sub-heading