From d0afdd9855fa3dfe4163d2e7ba469d13ed90ebbb Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 28 Sep 2021 20:19:44 +0000 Subject: [PATCH] HUGE REFACTOR / CLEANUP if there is a issue it's probably something in here that was changed --- ayanova/devdocs/todo.txt | 13 +- ayanova/src/App.vue | 16 +- ayanova/src/api/authorizationroles.js | 59 +-- ayanova/src/api/authutil.js | 7 +- ayanova/src/api/dash-registry.js | 6 +- ayanova/src/api/enums.js | 24 +- ayanova/src/api/errorhandler.js | 10 +- ayanova/src/api/form-custom-template.js | 10 +- ayanova/src/api/gzapi.js | 80 ++-- ayanova/src/api/gzdialog.js | 1 - ayanova/src/api/gzform.js | 191 +++----- ayanova/src/api/gzmenu.js | 60 +-- ayanova/src/api/gzutil.js | 92 +--- ayanova/src/api/initialize.js | 28 +- ayanova/src/api/locale.js | 18 +- ayanova/src/api/open-object-handler.js | 21 +- ayanova/src/api/palette.js | 12 +- .../api/relative-date-filter-calculator.js | 411 +---------------- ayanova/src/api/translation.js | 59 +-- .../src/components/_barebones_template.vue | 2 +- ayanova/src/components/attachment-control.vue | 45 +- ayanova/src/components/currency-control.vue | 4 +- .../src/components/custom-fields-control.vue | 38 +- ayanova/src/components/dash-base.vue | 6 - ...dash-test-bar-widget-count-by-usertype.vue | 9 +- .../dash-test-day-calendar-widget.vue | 10 +- .../dash-test-list-widgets-priciest.vue | 6 +- .../components/data-table-filter-control.vue | 52 +-- .../data-table-filter-manager-control.vue | 19 +- ayanova/src/components/data-table.vue | 108 ++--- ayanova/src/components/date-control.vue | 13 +- .../src/components/date-native-control.vue | 9 +- ayanova/src/components/date-time-control.vue | 15 +- .../components/date-time-native-control.vue | 10 +- .../src/components/days-of-week-control.vue | 7 +- ayanova/src/components/decimal-control.vue | 5 +- ayanova/src/components/duration-control.vue | 32 +- .../components/extension-delete-control.vue | 25 +- .../components/extension-export-control.vue | 20 +- .../src/components/extension-tags-control.vue | 64 +-- ayanova/src/components/extensions-control.vue | 15 +- ayanova/src/components/gzconfirm.vue | 2 +- ayanova/src/components/gznotify.vue | 10 - ayanova/src/components/percent-control.vue | 5 +- ayanova/src/components/pick-list.vue | 144 ++---- ayanova/src/components/pm-header.vue | 4 - ayanova/src/components/pm-item-expenses.vue | 15 +- ayanova/src/components/pm-item-labors.vue | 14 +- ayanova/src/components/pm-item-loans.vue | 14 +- .../components/pm-item-outside-services.vue | 12 +- ayanova/src/components/pm-item-parts.vue | 16 +- .../components/pm-item-scheduled-users.vue | 12 +- ayanova/src/components/pm-item-tasks.vue | 16 +- ayanova/src/components/pm-item-travels.vue | 12 +- ayanova/src/components/pm-item-units.vue | 59 +-- ayanova/src/components/pm-items.vue | 13 +- ayanova/src/components/quote-header.vue | 3 - .../src/components/quote-item-expenses.vue | 17 +- ayanova/src/components/quote-item-labors.vue | 12 +- ayanova/src/components/quote-item-loans.vue | 12 +- .../quote-item-outside-services.vue | 12 +- ayanova/src/components/quote-item-parts.vue | 16 +- .../components/quote-item-scheduled-users.vue | 12 +- ayanova/src/components/quote-item-tasks.vue | 16 +- ayanova/src/components/quote-item-travels.vue | 12 +- ayanova/src/components/quote-item-units.vue | 58 +-- ayanova/src/components/quote-items.vue | 12 +- ayanova/src/components/quote-state.vue | 10 +- .../components/report-selector-control.vue | 21 +- ayanova/src/components/role-control.vue | 9 +- ayanova/src/components/tag-picker.vue | 44 +- ayanova/src/components/time-control.vue | 15 +- .../src/components/time-native-control.vue | 25 +- ayanova/src/components/wiki-control.vue | 66 ++- ayanova/src/components/work-order-address.vue | 45 +- ayanova/src/components/work-order-header.vue | 5 - .../components/work-order-item-expenses.vue | 17 +- .../src/components/work-order-item-labors.vue | 12 +- .../src/components/work-order-item-loans.vue | 12 +- .../work-order-item-outside-services.vue | 12 +- .../work-order-item-part-requests.vue | 19 +- .../src/components/work-order-item-parts.vue | 18 +- .../work-order-item-scheduled-users.vue | 12 +- .../src/components/work-order-item-tasks.vue | 16 +- .../components/work-order-item-travels.vue | 12 +- .../src/components/work-order-item-units.vue | 59 +-- ayanova/src/components/work-order-items.vue | 66 +-- .../src/components/work-order-signature.vue | 9 - ayanova/src/components/work-order-state.vue | 25 +- ayanova/src/main.js | 21 +- ayanova/src/plugins/vuetify.js | 20 +- ayanova/src/router.js | 17 +- ayanova/src/store.js | 3 +- ayanova/src/views/acc-service-bank.vue | 86 +--- ayanova/src/views/acc-service-banks.vue | 32 +- ayanova/src/views/acc-service-rate.vue | 119 ++--- ayanova/src/views/acc-service-rates.vue | 16 +- ayanova/src/views/acc-tax-code.vue | 119 ++--- ayanova/src/views/acc-tax-codes.vue | 16 +- ayanova/src/views/acc-travel-rate.vue | 126 ++---- ayanova/src/views/acc-travel-rates.vue | 16 +- ayanova/src/views/adm-attachments.vue | 55 +-- ayanova/src/views/adm-global-logo.vue | 58 +-- ayanova/src/views/adm-global-seeds.vue | 48 +- .../src/views/adm-global-select-templates.vue | 104 ++--- ayanova/src/views/adm-global-settings.vue | 155 +++---- ayanova/src/views/adm-history.vue | 13 +- ayanova/src/views/adm-import.vue | 24 +- ayanova/src/views/adm-license.vue | 35 +- ayanova/src/views/adm-report-templates.vue | 31 +- ayanova/src/views/adm-translation.vue | 111 ++--- ayanova/src/views/adm-translations.vue | 32 +- ayanova/src/views/adm-user.vue | 193 ++------ ayanova/src/views/adm-users.vue | 18 +- ayanova/src/views/ay-about.vue | 33 +- ayanova/src/views/ay-customize.vue | 78 ++-- .../src/views/ay-data-list-column-view.vue | 112 ++--- ayanova/src/views/ay-evaluate.vue | 42 +- ayanova/src/views/ay-history.vue | 45 +- ayanova/src/views/ay-log.vue | 5 +- ayanova/src/views/ay-open.vue | 4 +- ayanova/src/views/ay-report-edit.vue | 185 ++------ ayanova/src/views/cust-customer-note.vue | 95 +--- ayanova/src/views/cust-customer-notes.vue | 22 +- ayanova/src/views/cust-customer.vue | 266 ++++------- ayanova/src/views/cust-customers.vue | 16 +- ayanova/src/views/cust-head-office.vue | 229 +++------- ayanova/src/views/cust-head-offices.vue | 15 +- ayanova/src/views/cust-user.vue | 239 ++-------- ayanova/src/views/cust-users.vue | 34 +- ayanova/src/views/customer-csr-edit.vue | 227 ++-------- ayanova/src/views/customer-csr.vue | 63 +-- ayanova/src/views/customer-workorder.vue | 12 +- ayanova/src/views/home-dashboard.vue | 60 +-- ayanova/src/views/home-memo.vue | 169 +++---- ayanova/src/views/home-memos.vue | 16 +- ayanova/src/views/home-notifications.vue | 94 ++-- ayanova/src/views/home-notify-direct.vue | 86 +--- .../src/views/home-notify-subscription.vue | 142 +----- .../src/views/home-notify-subscriptions.vue | 33 +- ayanova/src/views/home-password.vue | 45 +- ayanova/src/views/home-reminder.vue | 219 +++------ ayanova/src/views/home-reminders.vue | 16 +- ayanova/src/views/home-reset.vue | 10 +- ayanova/src/views/home-review.vue | 142 ++---- ayanova/src/views/home-reviews.vue | 36 +- ayanova/src/views/home-schedule.vue | 52 +-- ayanova/src/views/home-search.vue | 48 +- ayanova/src/views/home-security.vue | 86 +--- ayanova/src/views/home-user-settings.vue | 133 ++---- ayanova/src/views/inv-part-adjustment.vue | 33 +- ayanova/src/views/inv-part-assemblies.vue | 16 +- ayanova/src/views/inv-part-assembly.vue | 102 +---- .../views/inv-part-inventory-transactions.vue | 23 +- ayanova/src/views/inv-part-inventory.vue | 22 +- ayanova/src/views/inv-part-requests.vue | 21 +- ayanova/src/views/inv-part-serials.vue | 91 +--- ayanova/src/views/inv-part-stock-levels.vue | 72 +-- ayanova/src/views/inv-part-warehouse.vue | 117 ++--- ayanova/src/views/inv-part-warehouses.vue | 16 +- ayanova/src/views/inv-part.vue | 161 ++----- ayanova/src/views/inv-parts.vue | 16 +- ayanova/src/views/inv-purchase-order.vue | 427 ++++++------------ ayanova/src/views/inv-purchase-orders.vue | 16 +- ayanova/src/views/login.vue | 72 +-- ayanova/src/views/notfound.vue | 5 +- ayanova/src/views/ops-backup.vue | 55 +-- ayanova/src/views/ops-jobs.vue | 30 +- ayanova/src/views/ops-log.vue | 30 +- ayanova/src/views/ops-metrics.vue | 56 +-- .../src/views/ops-notification-settings.vue | 41 +- ayanova/src/views/ops-notify-queue.vue | 75 +-- ayanova/src/views/ops-profile.vue | 32 +- ayanova/src/views/ops-server-state.vue | 55 +-- ayanova/src/views/ops-view-configuration.vue | 48 +- ayanova/src/views/svc-contract.vue | 147 ++---- ayanova/src/views/svc-contracts.vue | 16 +- ayanova/src/views/svc-csr.vue | 171 ++----- ayanova/src/views/svc-csrs.vue | 16 +- ayanova/src/views/svc-loaner.vue | 152 ++----- ayanova/src/views/svc-loaners.vue | 16 +- ayanova/src/views/svc-meter-reading.vue | 103 +---- ayanova/src/views/svc-meter-readings.vue | 21 +- ayanova/src/views/svc-pm-item-expenses.vue | 16 +- ayanova/src/views/svc-pm-item-labors.vue | 15 +- ayanova/src/views/svc-pm-item-loans.vue | 19 +- .../views/svc-pm-item-outside-services.vue | 18 +- ayanova/src/views/svc-pm-item-parts.vue | 17 +- .../src/views/svc-pm-item-scheduled-users.vue | 18 +- ayanova/src/views/svc-pm-item-tasks.vue | 16 +- ayanova/src/views/svc-pm-item-travels.vue | 16 +- ayanova/src/views/svc-pm-item-units.vue | 16 +- ayanova/src/views/svc-pm-items.vue | 16 +- ayanova/src/views/svc-pm.vue | 73 +-- ayanova/src/views/svc-pms.vue | 21 +- ayanova/src/views/svc-project.vue | 127 ++---- ayanova/src/views/svc-projects.vue | 16 +- ayanova/src/views/svc-quote-item-expenses.vue | 17 +- ayanova/src/views/svc-quote-item-labors.vue | 18 +- ayanova/src/views/svc-quote-item-loans.vue | 16 +- .../views/svc-quote-item-outside-services.vue | 16 +- ayanova/src/views/svc-quote-item-parts.vue | 17 +- .../views/svc-quote-item-scheduled-users.vue | 16 +- ayanova/src/views/svc-quote-item-tasks.vue | 16 +- ayanova/src/views/svc-quote-item-travels.vue | 16 +- ayanova/src/views/svc-quote-item-units.vue | 18 +- ayanova/src/views/svc-quote-items.vue | 16 +- ayanova/src/views/svc-quote-status-edit.vue | 81 +--- ayanova/src/views/svc-quote-status.vue | 7 +- ayanova/src/views/svc-quote.vue | 154 ++----- ayanova/src/views/svc-quotes.vue | 19 +- ayanova/src/views/svc-task-group.vue | 87 +--- ayanova/src/views/svc-task-groups.vue | 7 +- ayanova/src/views/svc-unit-model.vue | 156 ++----- ayanova/src/views/svc-unit-models.vue | 16 +- ayanova/src/views/svc-unit.vue | 238 +++------- ayanova/src/views/svc-units.vue | 17 +- .../svc-work-order-item-priorities-edit.vue | 75 +-- .../views/svc-work-order-item-priorities.vue | 7 +- .../views/svc-work-order-item-status-edit.vue | 74 +-- .../src/views/svc-work-order-item-status.vue | 7 +- .../src/views/svc-work-order-status-edit.vue | 80 +--- ayanova/src/views/svc-work-order-status.vue | 7 +- .../src/views/svc-workorder-item-expenses.vue | 16 +- .../src/views/svc-workorder-item-labors.vue | 16 +- .../src/views/svc-workorder-item-loans.vue | 22 +- .../svc-workorder-item-outside-services.vue | 22 +- .../svc-workorder-item-part-requests.vue | 22 +- .../src/views/svc-workorder-item-parts.vue | 22 +- .../svc-workorder-item-scheduled-users.vue | 22 +- .../src/views/svc-workorder-item-tasks.vue | 22 +- .../src/views/svc-workorder-item-travels.vue | 16 +- .../src/views/svc-workorder-item-units.vue | 16 +- ayanova/src/views/svc-workorder-items.vue | 16 +- ayanova/src/views/svc-workorder.vue | 179 +++----- ayanova/src/views/svc-workorders.vue | 19 +- ayanova/src/views/vendor.vue | 171 +++---- ayanova/src/views/vendors.vue | 16 +- 238 files changed, 3127 insertions(+), 8614 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index e1c025dc..7d7098cb 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -29,7 +29,8 @@ //.......... - + Customer work order form / view / open??? + Customer CSR form has a bunch of todo in the template, WTF? Dashboard / widgets Just enough an no more, this could be endless, come up with a top 5 or something and limit it to that (this is also a very juicy v.next feature thing too) @@ -94,6 +95,16 @@ Coded by importance \_____|______|_____|______|_| \_| |_| +- 1 refactoring let to const + remove all these: + + + + + + + + - 1 BUG BUG: attempt to delete a customer with a linked unit (so it can't be deleted) and get error properly but overlay stays on form whatever this is needs to be fixed everywhere diff --git a/ayanova/src/App.vue b/ayanova/src/App.vue index 6987d842..5c05dabe 100644 --- a/ayanova/src/App.vue +++ b/ayanova/src/App.vue @@ -2,7 +2,6 @@ - - diff --git a/ayanova/src/components/pm-item-loans.vue b/ayanova/src/components/pm-item-loans.vue index 30f0ff8a..055e7b49 100644 --- a/ayanova/src/components/pm-item-loans.vue +++ b/ayanova/src/components/pm-item-loans.vue @@ -409,10 +409,6 @@ diff --git a/ayanova/src/components/pm-item-outside-services.vue b/ayanova/src/components/pm-item-outside-services.vue index efbfc3e4..8107c70b 100644 --- a/ayanova/src/components/pm-item-outside-services.vue +++ b/ayanova/src/components/pm-item-outside-services.vue @@ -591,10 +591,6 @@ diff --git a/ayanova/src/components/work-order-address.vue b/ayanova/src/components/work-order-address.vue index 7117188b..9106ffed 100644 --- a/ayanova/src/components/work-order-address.vue +++ b/ayanova/src/components/work-order-address.vue @@ -351,20 +351,15 @@ diff --git a/ayanova/src/views/adm-translation.vue b/ayanova/src/views/adm-translation.vue index 45f78a55..74e32d4f 100644 --- a/ayanova/src/views/adm-translation.vue +++ b/ayanova/src/views/adm-translation.vue @@ -1,7 +1,6 @@ - diff --git a/ayanova/src/views/customer-workorder.vue b/ayanova/src/views/customer-workorder.vue index 87abf056..5e933b16 100644 --- a/ayanova/src/views/customer-workorder.vue +++ b/ayanova/src/views/customer-workorder.vue @@ -21,10 +21,6 @@ diff --git a/ayanova/src/views/home-memo.vue b/ayanova/src/views/home-memo.vue index 46c2fe4c..8a7e9d85 100644 --- a/ayanova/src/views/home-memo.vue +++ b/ayanova/src/views/home-memo.vue @@ -3,7 +3,6 @@
- - diff --git a/ayanova/src/views/home-memos.vue b/ayanova/src/views/home-memos.vue index 0ae7ca74..7cc35ea6 100644 --- a/ayanova/src/views/home-memos.vue +++ b/ayanova/src/views/home-memos.vue @@ -53,7 +53,7 @@ async function clickHandler(menuItem) { if (!menuItem) { return; } - let m = window.$gz.menu.parseMenuItem(menuItem); + const m = window.$gz.menu.parseMenuItem(menuItem); if (m.owner == FORM_KEY && !m.disabled) { switch (m.key) { case "new": @@ -63,7 +63,7 @@ async function clickHandler(menuItem) { }); break; case "extensions": - let res = await m.vm.$refs.extensions.open( + const res = await m.vm.$refs.extensions.open( m.vm.$refs.gzdatatable.getDataListSelection(window.$gz.type.Memo) ); if (res && res.refresh == true) { @@ -72,7 +72,7 @@ async function clickHandler(menuItem) { break; case "report": { - let res = await m.vm.$refs.reportSelector.open( + const res = await m.vm.$refs.reportSelector.open( m.vm.$refs.gzdatatable.getDataListSelection(window.$gz.type.Memo), m.id ); @@ -80,7 +80,7 @@ async function clickHandler(menuItem) { return; } window.$gz.form.setLastReport(FORM_KEY, res); - generateMenu(m.vm); //refresh the menu with the new report + generateMenu(m.vm); } break; default: @@ -96,7 +96,7 @@ async function clickHandler(menuItem) { // // function generateMenu(vm) { - let menuOptions = { + const menuOptions = { isMain: true, icon: "$ayiInbox", title: "MemoList", @@ -117,8 +117,6 @@ function generateMenu(vm) { }); } - //REPORTS - //Report not Print, print is a further option menuOptions.menuItems.push({ title: "Report", icon: "$ayiFileAlt", @@ -126,8 +124,7 @@ function generateMenu(vm) { vm: vm }); - //get last report selected - let lastReport = window.$gz.form.getLastReport(FORM_KEY); + const lastReport = window.$gz.form.getLastReport(FORM_KEY); if (lastReport != null) { menuOptions.menuItems.push({ title: lastReport.name, @@ -137,7 +134,6 @@ function generateMenu(vm) { vm: vm }); } - menuOptions.menuItems.push({ title: "Extensions", icon: "$ayiPuzzlePiece", diff --git a/ayanova/src/views/home-notifications.vue b/ayanova/src/views/home-notifications.vue index 54780d14..5b71f2c6 100644 --- a/ayanova/src/views/home-notifications.vue +++ b/ayanova/src/views/home-notifications.vue @@ -66,7 +66,7 @@ const FORM_KEY = "notifications"; export default { async created() { - let vm = this; + const vm = this; try { await initForm(vm); @@ -116,70 +116,41 @@ export default { }); }, async deleteItem(item) { - //prompt - //delete - - let vm = this; try { - let dialogResult = await window.$gz.dialog.confirmDelete(); + const dialogResult = await window.$gz.dialog.confirmDelete(); if (dialogResult != true) { return; } - - window.$gz.form.deleteAllErrorBoxErrors(vm); - let res = await window.$gz.api.remove( + window.$gz.form.deleteAllErrorBoxErrors(this); + const res = await window.$gz.api.remove( `notify/${item.id}`, this.selectedItems ); if (res.error) { - vm.formState.serverError = res.error; - window.$gz.form.setErrorBoxErrors(vm); + this.formState.serverError = res.error; + window.$gz.form.setErrorBoxErrors(this); } await this.getDataFromApi(); } catch (ex) { - window.$gz.errorHandler.handleFormError(ex, vm); + window.$gz.errorHandler.handleFormError(ex, this); } }, - async getDataFromApi() { - let vm = this; - try { - window.$gz.form.deleteAllErrorBoxErrors(vm); - - let res = await window.$gz.api.get("notify/app-notifications"); - + window.$gz.form.deleteAllErrorBoxErrors(this); + const res = await window.$gz.api.get("notify/app-notifications"); if (res.error) { - //Not found? if (res.error.code == "2010") { - window.$gz.form.handleObjectNotFound(vm); + window.$gz.form.handleObjectNotFound(this); } - vm.formState.serverError = res.error; - window.$gz.form.setErrorBoxErrors(vm); + this.formState.serverError = res.error; + window.$gz.form.setErrorBoxErrors(this); } else { - //pre-make the display list object - //source object: - //[ { "id": 1, "concurrency": 18835104, "userId": 1, "created": "2020-07-20T19:35:49.665888Z", "ayaType": 2, - // "objectId": 101, "eventType": 2, "notifySubscriptionId": 1, "message": null, "fetched": true } ] - //display object: - //{event:"",objectname:"",objecttype:null,icon:null,eventdate:null,openurl:null,suburl:null,eventid} - - let temp = res.data; - - //Nice touch to show super faded just before deletion but don't have time for this at the moment - // let dtNow = window.$gz.DateTime.local(); - // let dtToday = window.$gz.DateTime.local( - // dtNow.year, - // dtNow.month, - // dtNow.day - // ); - // let dtPrecipice = dtToday.plus({ days: -85 }).toUTC(); - + const temp = res.data; const timeZoneName = window.$gz.locale.getResolvedTimeZoneName(); const languageName = window.$gz.locale.getResolvedLanguage(); const hour12 = window.$gz.store.state.userOptions.hour12; const currencyName = window.$gz.locale.getCurrencyName(); - for (let i = 0; i < temp.length; i++) { temp[ i @@ -190,24 +161,20 @@ export default { hour12 ); - temp[i]["uievent"] = vm.selectLists.eventTypes.find( + temp[i]["uievent"] = this.selectLists.eventTypes.find( z => z.id == temp[i].eventType ).name; - temp[i]["uiayatype"] = vm.selectLists.ayaTypes.find( + temp[i]["uiayatype"] = this.selectLists.ayaTypes.find( z => z.id == temp[i].ayaType ).name; temp[i].icon = window.$gz.util.iconForType(temp[i].ayaType); if (temp[i].name == "~SERVER~") { - temp[i].name = vm.$ay.t("Server"); + temp[i].name = this.$ay.t("Server"); } - // if (temp[i].message && temp[i].message.includes("\n")) { - // temp[i].message = temp[i].message.replace("\n", "
"); - // } - temp[i].ageValueViz = window.$gz.locale.durationLocalized( temp[i].ageValue ); @@ -228,33 +195,30 @@ export default { temp[i].decValueViz = ""; } } - - vm.obj = [...temp]; - - //modify the menu as necessary - generateMenu(vm); - //Update the form status + this.obj = [...temp]; + generateMenu(this); window.$gz.form.setFormState({ - vm: vm, + vm: this, dirty: false, valid: true, loading: false }); - //Check the new count and update accordingly //this is to ensure that when a user is viewing the latest notifications they don't see the NEW count still in the bell icon in menu since they are viewing them live - let status = await window.$gz.api.get("notify/new-count"); + const status = await window.$gz.api.get("notify/new-count"); if (status.error) { //throw new Error(status.error); - throw new Error(window.$gz.errorHandler.errorToString(status, vm)); + throw new Error( + window.$gz.errorHandler.errorToString(status, this) + ); } window.$gz.store.commit("setNewNotificationCount", status.data); } } catch (error) { - window.$gz.errorHandler.handleFormError(error, vm); + window.$gz.errorHandler.handleFormError(error, this); } finally { window.$gz.form.setFormState({ - vm: vm, + vm: this, loading: false }); } @@ -269,16 +233,12 @@ async function clickHandler(menuItem) { if (!menuItem) { return; } - let m = window.$gz.menu.parseMenuItem(menuItem); + const m = window.$gz.menu.parseMenuItem(menuItem); if (m.owner == FORM_KEY && !m.disabled) { switch (m.key) { case "refresh": await m.vm.getDataFromApi(); break; - // case "directnotify": - // let res = await m.vm.$refs.extensions.open(); - // break; - default: window.$gz.eventBus.$emit( "notify-warning", @@ -292,7 +252,7 @@ async function clickHandler(menuItem) { // // function generateMenu(vm) { - let menuOptions = { + const menuOptions = { isMain: true, icon: "$ayiBell", title: "Notifications", diff --git a/ayanova/src/views/home-notify-direct.vue b/ayanova/src/views/home-notify-direct.vue index 9300cb01..d88f0fb9 100644 --- a/ayanova/src/views/home-notify-direct.vue +++ b/ayanova/src/views/home-notify-direct.vue @@ -3,7 +3,6 @@ - - - - diff --git a/ayanova/src/views/inv-part-adjustment.vue b/ayanova/src/views/inv-part-adjustment.vue index 3cb540d1..8710099e 100644 --- a/ayanova/src/views/inv-part-adjustment.vue +++ b/ayanova/src/views/inv-part-adjustment.vue @@ -69,32 +69,23 @@
- diff --git a/ayanova/src/views/inv-purchase-orders.vue b/ayanova/src/views/inv-purchase-orders.vue index ba16f3cf..8abb8f27 100644 --- a/ayanova/src/views/inv-purchase-orders.vue +++ b/ayanova/src/views/inv-purchase-orders.vue @@ -19,7 +19,6 @@ - diff --git a/ayanova/src/views/svc-contract.vue b/ayanova/src/views/svc-contract.vue index eb34c5ae..cba5db40 100644 --- a/ayanova/src/views/svc-contract.vue +++ b/ayanova/src/views/svc-contract.vue @@ -1306,31 +1306,19 @@ - diff --git a/ayanova/src/views/svc-meter-readings.vue b/ayanova/src/views/svc-meter-readings.vue index 7737b7b5..8f8d3b4a 100644 --- a/ayanova/src/views/svc-meter-readings.vue +++ b/ayanova/src/views/svc-meter-readings.vue @@ -15,13 +15,7 @@ - diff --git a/ayanova/src/views/svc-pm-item-expenses.vue b/ayanova/src/views/svc-pm-item-expenses.vue index e3ea8c33..b454aa4a 100644 --- a/ayanova/src/views/svc-pm-item-expenses.vue +++ b/ayanova/src/views/svc-pm-item-expenses.vue @@ -19,7 +19,6 @@ - diff --git a/ayanova/src/views/svc-quote-item-labors.vue b/ayanova/src/views/svc-quote-item-labors.vue index f99981f7..de5b9687 100644 --- a/ayanova/src/views/svc-quote-item-labors.vue +++ b/ayanova/src/views/svc-quote-item-labors.vue @@ -22,7 +22,6 @@ - diff --git a/ayanova/src/views/svc-quote-item-scheduled-users.vue b/ayanova/src/views/svc-quote-item-scheduled-users.vue index 76cf3c0d..95080d9c 100644 --- a/ayanova/src/views/svc-quote-item-scheduled-users.vue +++ b/ayanova/src/views/svc-quote-item-scheduled-users.vue @@ -22,7 +22,6 @@ -