This commit is contained in:
2020-07-06 23:48:16 +00:00
parent 599711e5bb
commit d2c3e16c2f
6 changed files with 139 additions and 54 deletions

View File

@@ -122,16 +122,16 @@ export default {
});
}
//PLUGINS - for anything with a type but not necessarily an ID
if (!UTILITY_TYPES.includes(formAyaType)) {
vm.appBar.menuItems.push({
title: "More",
icon: "fa-puzzle-piece",
key: "app:plugin",
data: formAyaType,
recordId: formRecordId
});
}
// //PLUGINS - for anything with a type but not necessarily an ID
// if (!UTILITY_TYPES.includes(formAyaType)) {
// vm.appBar.menuItems.push({
// title: "More",
// icon: "fa-puzzle-piece",
// key: "app:plugin",
// data: formAyaType,
// recordId: formRecordId
// });
// }
//CUSTOMIZE
//set custom fields and link to translation text editor
@@ -292,12 +292,9 @@ export default {
// params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
// });
// break;
// case "wiki":
// vm.$router.push({
// name: "ay-wiki",
// params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
// });
// break;
case "plugin":
alert("STUB: plugin / more");
break;
case "review":
vm.$router.push({
name: "ay-review",

View File

@@ -722,7 +722,13 @@ function initNavPanel() {
}
//*** EVALUATION active trial license should always go to evaluation as home page
if (licenseState == 1) {
//as long as they are a normal User type and not a customer or subcontractor type
if (
(licenseState == 1) &
(window.$gz.store.state.userType == 1 ||
window.$gz.store.state.userType == 2 ||
window.$gz.store.state.userType == 3)
) {
addNavItem(
"Evaluate",
"fa-rocket",