Final (?) de-widgetification

This commit is contained in:
2021-09-07 14:33:48 +00:00
parent 195edf7791
commit db8eafb1c0
22 changed files with 44 additions and 1062 deletions

View File

@@ -2,7 +2,7 @@ export default {
NoType: 0,
Global: 1,
//corebizobject
Widget: 2,
UNUSED_2: 2,
//corebizobject
User: 3,
ServerState: 4,

View File

@@ -98,7 +98,6 @@ export default {
GlobalOps: { Change: 16384, ReadFullRecord: 8192, Select: 0 },
User: { Change: 2, ReadFullRecord: 1, Select: 131071 },
UserOptions: { Change: 2, ReadFullRecord: 1, Select: 0 },
Widget: { Change: 34, ReadFullRecord: 17, Select: 131071 },
ServerState: { Change: 16384, ReadFullRecord: 131071, Select: 0 },
License: { Change: 2, ReadFullRecord: 1, Select: 0 },
TrialSeeder: { Change: 16386, ReadFullRecord: 8193, Select: 0 },

View File

@@ -487,7 +487,6 @@ export default {
///////////////////////////////
// USER REQUIRED FIELDS
// (Fields defined by AyaNova users as required on form that are not stock required already)
// (was using this in testing on widget form notes field but not sure where else it's applicable)
userRequiredFields(vm, ref, formCustomTemplateFieldName) {
if (vm.formState.loading) {
return true;
@@ -542,14 +541,6 @@ export default {
// For now the only rule is that they can be required or not
//
customFieldsCheck(vm, templateItem, subvm, fieldName) {
//templateItem sample
// dataKey: "c2"
// fld: "WidgetCustom2"
// hide: "false"
// required: true
// type: "text"
// debugger;
if (vm.formState.loading) {
return true;
}

View File

@@ -419,8 +419,6 @@ export default {
return "$ayiGenderless";
case window.$gz.type.Global:
return "$ayiGlobe";
case window.$gz.type.Widget:
return "$ayiVial";
case window.$gz.type.User:
return "$ayiUser";
case window.$gz.type.ServerState:

View File

@@ -727,11 +727,6 @@ function initNavPanel() {
addNavItem("Operations", "$ayiServer", undefined, sub, key++, "operations");
}
// //############ WIDGETS (TOP GROUP)
// if (window.$gz.role.canOpen(window.$gz.type.Widget)) {
// addNavItem("WidgetList", "$ayiVial", "/widgets", [], key++, "widgets");
// }
//*** EVALUATION active trial license should always go to evaluation as home page
//as long as they are a normal User type and not a subcontractor type
if (

View File

@@ -219,12 +219,7 @@ export default {
params: { recordid: tid.id }
});
break;
case ayatype.Widget:
vm.$router.push({
name: "widget-edit",
params: { recordid: tid.id }
});
break;
case ayatype.User:
//Is it an "Inside" user (staff or subcontractor)
//or an "outside" user (customer or headoffice)

View File

@@ -169,7 +169,6 @@ export default {
"PartInventoryTransactionList",
"PartWarehouseList",
"PurchaseOrderUIRestockList",
"WidgetList",
"VendorList",
"AdministrationGlobalSettings",
"HelpLicense",