This commit is contained in:
2020-11-17 00:58:40 +00:00
parent ebb7590c57
commit a8766c3f4a
2 changed files with 6 additions and 26 deletions

View File

@@ -1359,8 +1359,8 @@ let JUST_DELETED = false;
async function initForm(vm) {
await fetchTranslatedText(vm);
await window.$gz.formCustomTemplate.get(FORM_CUSTOM_TEMPLATE_KEY);
await populateSelectionLists(vm);
await cacheEnums(vm);
// await populateSelectionLists(vm);
// await cacheEnums(vm);
await createTableHeaders(vm);
}
@@ -1370,7 +1370,7 @@ async function initForm(vm) {
//
async function fetchTranslatedText(vm) {
await window.$gz.translation.cacheTranslations([
"Customer",
"Customer",
"CustomerName",
"CustomerNotes",
"WebAddress",
@@ -1420,25 +1420,6 @@ async function fetchTranslatedText(vm) {
]);
}
//////////////////////
//
//
async function populateSelectionLists(vm) {
//ensure the pick lists required are pre-fetched
await window.$gz.enums.fetchEnumList("usertype");
vm.selectLists.usertypes = window.$gz.enums.getSelectionList("usertype");
}
//////////////////////
//
//
async function cacheEnums(vm) {
//ensure the enum values required are pre-fetched
await window.$gz.enums.fetchEnumList("outsideusertype");
await window.$gz.enums.fetchEnumList("AuthorizationRoles");
vm.availableRoles = window.$gz.enums.getSelectionList("AuthorizationRoles");
}
//////////////////////
//
//
@@ -1446,7 +1427,6 @@ async function createTableHeaders(vm) {
vm.headers = [
{ text: vm.$ay.t("User"), value: "name" },
{ text: vm.$ay.t("Active"), value: "active" },
{ text: vm.$ay.t("UserType"), value: "userType" },
{ text: vm.$ay.t("LastLogin"), value: "lastLogin" }
];
}