diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 4f3032af..ee04fe55 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -12,11 +12,11 @@ ____________ ## CURRENT STAGE: -todo: UI QUICK NOTIFY need a place to send a General (old "quick") notification directly to a user and test it works via email delivery as well when user subscribes to general via email +todo: UI QUICK NOTIFY "Direct notification" need a place to send a General (old "quick") notification directly to a user and test it works via email delivery as well when user subscribes to general via email Maybe from the IN APP notification form itself as a link in the menu? Can choose any user except customer type unless you're of a certain higher level role allowed to deal with customers like service manager, sales manager, biz admin etc +todo: if no notifications in app should show "no data" or equivalent -todo: As biz objects are fleshed out need to also code their notification event stuff as well todo: Localize this message or get rid of it, it's annoying and possibly useless "Error checking for notifications, see about->log for details; log out and back in again to reset " diff --git a/ayanova/src/views/home-notifications.vue b/ayanova/src/views/home-notifications.vue index e1364ad8..c4a26fde 100644 --- a/ayanova/src/views/home-notifications.vue +++ b/ayanova/src/views/home-notifications.vue @@ -235,7 +235,7 @@ async function clickHandler(menuItem) { case "refresh": await m.vm.getDataFromApi(); break; - // case "extensions": + // case "directnotify": // let res = await m.vm.$refs.extensions.open(); // break; @@ -284,12 +284,12 @@ function generateMenu(vm) { // vm: vm // }); - // menuOptions.menuItems.push({ - // title: "Extensions", - // icon: "fa-puzzle-piece", - // key: FORM_KEY + ":extensions", - // vm: vm - // }); + menuOptions.menuItems.push({ + title: "DirectNotification", + icon: "fa-comment-alt", + data: "home-notify-direct", + key: "app:nav" + }); window.$gz.eventBus.$emit("menu-change", menuOptions); } ///////////////////////////////// @@ -308,7 +308,8 @@ async function fetchTranslatedText(vm) { await window.$gz.translation.cacheTranslations([ "NotifySubscription", "Server", - "Notifications" + "Notifications", + "DirectNotification" ]); } diff --git a/ayanova/src/views/home-notify-direct.vue b/ayanova/src/views/home-notify-direct.vue new file mode 100644 index 00000000..b6e396a2 --- /dev/null +++ b/ayanova/src/views/home-notify-direct.vue @@ -0,0 +1,217 @@ + + +