diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index abc5568c..b055a29c 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -324,7 +324,7 @@ function initNavPanel() { sub.push({ title: "CustomerNotifySubscriptionList", icon: "$ayiBullhorn", - route: "/customer-home-notify-subscriptions", + route: "/cust-notify-subscriptions", key: key++ }); diff --git a/ayanova/src/api/translation.js b/ayanova/src/api/translation.js index b5e0157e..35587dba 100644 --- a/ayanova/src/api/translation.js +++ b/ayanova/src/api/translation.js @@ -110,6 +110,7 @@ export default { "Service", "CustomerList", "HeadOfficeList", + "CustomerNotifySubscriptionList", "Contacts", "WorkOrderList", "WorkOrderItemList", diff --git a/ayanova/src/views/customer-notify-subscriptions.vue b/ayanova/src/views/customer-notify-subscriptions.vue index 36a0cdfc..b0b98a40 100644 --- a/ayanova/src/views/customer-notify-subscriptions.vue +++ b/ayanova/src/views/customer-notify-subscriptions.vue @@ -112,11 +112,7 @@ export default { id: o.id, eventType: eventDisplay, ayaType: `[${window.$gz.enums.get("coreview", o.ayaType)}]`, - deliveryMethod: window.$gz.enums.get( - "NotifyDeliveryMethod", - o.deliveryMethod - ), - deliveryAddress: o.deliveryAddress, + customerTags: window.$gz.util.formatTags(o.customerTags), tags: window.$gz.util.formatTags(o.tags) }); } @@ -215,9 +211,8 @@ async function fetchTranslatedText() { "NotifyEventType", "ID", "AyaType", - "NotifyDeliveryMethod", - "NotifyDeliveryAddress", - "Tags" + "Tags", + "CustomerTags" ]); } @@ -226,7 +221,7 @@ async function fetchTranslatedText() { // async function cacheEnums() { await window.$gz.enums.fetchEnumList("NotifyEventType"); - await window.$gz.enums.fetchEnumList("NotifyDeliveryMethod"); + await window.$gz.enums.fetchEnumList("coreview"); } @@ -237,9 +232,8 @@ async function createTableHeaders(vm) { vm.headers = [ { text: vm.$ay.t("ID"), value: "id" }, { text: vm.$ay.t("NotifyEventType"), value: "eventType" }, + { text: vm.$ay.t("CustomerTags"), value: "customerTags" }, { text: vm.$ay.t("AyaType"), value: "ayaType" }, - { text: vm.$ay.t("NotifyDeliveryMethod"), value: "deliveryMethod" }, - { text: vm.$ay.t("NotifyDeliveryAddress"), value: "deliveryAddress" }, { text: vm.$ay.t("Tags"), value: "tags" } ]; }