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