From a8766c3f4ab5704fe4bfb3cd3c0c117c5ef8d04c Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 17 Nov 2020 00:58:40 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 6 +++--- ayanova/src/views/cust-customer.vue | 26 +++----------------------- 2 files changed, 6 insertions(+), 26 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index fa738d88..d4bae208 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -70,16 +70,16 @@ todo: TESTING After customer form is made OUTSTANDING WITH CUSTOMER contacts - make list of users in grid, shows all contact info - can open to cust-user edit form + shows all contact info Change cust-user edit form (and other user edit form) and add tabs and user options section so that it can all be set there as well Add button to email the user their creds and login and invite them to change the password once they login Customer User (contacts) UI for this client (generate, view) case for this and notes, sb very simple way to create and send creds for user Customer User / User(s) Label as Contact / Contacts - Show customer / head office in generic contacts grid view + Show customer / head office NAME in generic contacts grid view Copy address to clipboard? + Yes and copy all contact info as well? Show all workorders quotes diff --git a/ayanova/src/views/cust-customer.vue b/ayanova/src/views/cust-customer.vue index 8bdbf418..78a39d65 100644 --- a/ayanova/src/views/cust-customer.vue +++ b/ayanova/src/views/cust-customer.vue @@ -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" } ]; }