From 5e7b808c4d4e4e80d1a074ecb1603805af6d7703 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 26 Nov 2020 21:47:17 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 4 +--- ayanova/src/api/gzutil.js | 14 ++++++++++---- ayanova/src/views/adm-import.vue | 3 ++- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 4bc9b60f..7d2f8622 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -35,9 +35,7 @@ To REMOVE: apt-get remove dotnet-runtime-3.0 (replace 3.0 with whatever version MISC ITEMS THAT CAME UP -todo: object history / user history form - can't open up a customer or customer note from that form or other objects? - is it just not coded? + todo: erasedatabase for import needs to also erase datalistview's and defaults or has an issue with them I think maybe actually it already deletes them but it needs to set the SuperUser account to not use them diff --git a/ayanova/src/api/gzutil.js b/ayanova/src/api/gzutil.js index f7414245..414a4e2c 100644 --- a/ayanova/src/api/gzutil.js +++ b/ayanova/src/api/gzutil.js @@ -351,10 +351,10 @@ export default { return "$ayiGenderless"; case window.$gz.type.Global: return "$ayiGlobe"; - case window.$gz.type.User: - return "$ayiUser"; case window.$gz.type.Widget: return "$ayiVial"; + case window.$gz.type.User: + return "$ayiUser"; case window.$gz.type.ServerState: return "$ayiDoorOpen"; case window.$gz.type.License: @@ -363,10 +363,12 @@ export default { return "$ayiGlasses"; case window.$gz.type.PickListTemplate: return "$ayiPencilRuler"; + case window.$gz.type.Customer: + return "$ayiAddressCard"; case window.$gz.type.ServerJob: return "$ayiRobot"; - case window.$gz.type.AyaNova7Import: - return "$ayiFileImport"; + case window.$gz.type.Contract: + return "$ayiFileContract"; case window.$gz.type.TrialSeeder: return "$ayiSeedling"; case window.$gz.type.Metrics: @@ -375,6 +377,10 @@ export default { return "$ayiLanguage"; case window.$gz.type.UserOptions: return "$ayiUserCog"; + case window.$gz.type.HeadOffice: + return "$ayiSitemap"; + case window.$gz.type.LoanUnit: + return "$ayiPlug"; case window.$gz.type.FileAttachment: return "$ayiPaperclip"; case window.$gz.type.DataListView: diff --git a/ayanova/src/views/adm-import.vue b/ayanova/src/views/adm-import.vue index fde92575..f48fb098 100644 --- a/ayanova/src/views/adm-import.vue +++ b/ayanova/src/views/adm-import.vue @@ -48,7 +48,8 @@ const FORM_KEY = "adm-import"; export default { async created() { - this.rights = window.$gz.role.getRights(window.$gz.type.Translation); + //NOTE: chose this because there is no general import but report covers bizadminfull and bizadminlimited + this.rights = window.$gz.role.getRights(window.$gz.type.Report); window.$gz.eventBus.$on("menu-click", clickHandler); await fetchTranslatedText(this); await populateSelectionLists(this);