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