From a6ca999130af4ae5aa186c05bd9198a84624dc45 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 20 Jul 2020 17:36:59 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 4 +- .../src/views/adm-global-select-templates.vue | 2 +- ayanova/src/views/ay-customize.vue | 2 +- ayanova/src/views/ay-data-list-view.vue | 2 +- ayanova/src/views/home-notifications.vue | 153 ++++++++++++++++-- 5 files changed, 149 insertions(+), 14 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 982ab6bb..08b28a38 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -55,7 +55,9 @@ todo: //NEW NOTIFICATION SUBSCRIPTION EVENT TYPE: BACKEND - +todo: remove fetched date column from notification table? (doesn't appear to be used in current system) + although, would be useful for bolding new items maybe? + todo: BAckend server routes for App notification fetch and clear etc todo: Back end notification related settings diff --git a/ayanova/src/views/adm-global-select-templates.vue b/ayanova/src/views/adm-global-select-templates.vue index 63f95e8a..c31105e2 100644 --- a/ayanova/src/views/adm-global-select-templates.vue +++ b/ayanova/src/views/adm-global-select-templates.vue @@ -111,7 +111,7 @@ export default { window.$gz.eventBus.$on("menu-click", clickHandler); //NOTE: this would normally be in getDataFromAPI but this form doesn't really need that function so doing it here //modify the menu as necessary - generateMenu(vm, false); //default is never read only and passing in this vm + generateMenu(vm); //init disable save button so it can be enabled only on edit to show dirty form window.$gz.eventBus.$emit("menu-disable-item", FORM_KEY + ":save"); window.$gz.eventBus.$emit("menu-disable-item", FORM_KEY + ":delete"); diff --git a/ayanova/src/views/ay-customize.vue b/ayanova/src/views/ay-customize.vue index f7686b98..87090fe7 100644 --- a/ayanova/src/views/ay-customize.vue +++ b/ayanova/src/views/ay-customize.vue @@ -86,7 +86,7 @@ export default { window.$gz.eventBus.$on("menu-click", clickHandler); //NOTE: this would normally be in getDataFromAPI but this form doesn't really need that function so doing it here //modify the menu as necessary - generateMenu(vm, false); //default is never read only and passing in this vm + generateMenu(vm); //init disable save button so it can be enabled only on edit to show dirty form window.$gz.eventBus.$emit("menu-disable-item", FORM_KEY + ":save"); } catch (err) { diff --git a/ayanova/src/views/ay-data-list-view.vue b/ayanova/src/views/ay-data-list-view.vue index a09901a2..f2dd05e1 100644 --- a/ayanova/src/views/ay-data-list-view.vue +++ b/ayanova/src/views/ay-data-list-view.vue @@ -447,7 +447,7 @@ export default { window.$gz.eventBus.$on("menu-click", clickHandler); //NOTE: this would normally be in getDataFromAPI but this form doesn't really need that function so doing it here //modify the menu as necessary - generateMenu(vm, false); //default is never read only and passing in this vm + generateMenu(vm); //init disable save button so it can be enabled only on edit to show dirty form window.$gz.eventBus.$emit("menu-disable-item", FORM_KEY + ":save"); vm.formState.loading = false; diff --git a/ayanova/src/views/home-notifications.vue b/ayanova/src/views/home-notifications.vue index 35f2d03d..6fe79345 100644 --- a/ayanova/src/views/home-notifications.vue +++ b/ayanova/src/views/home-notifications.vue @@ -1,24 +1,157 @@