diff --git a/ayanova/src/views/home-notifications.vue b/ayanova/src/views/home-notifications.vue index 4face1b2..d9df3d76 100644 --- a/ayanova/src/views/home-notifications.vue +++ b/ayanova/src/views/home-notifications.vue @@ -1,13 +1,44 @@ @@ -64,14 +99,20 @@ export default { }; }, methods: { - subtitleHtml(item) { - let msg = ""; - if (item.message) { - msg = ` — ${item.message}`; - } else { - } - return `${item.uievent}${msg}`; + openItem(item) { + window.$gz.eventBus.$emit("openobject", { + type: item.ayaType, + id: item.objectId + }); }, + openSubscription(item) { + window.$gz.eventBus.$emit("openobject", { + type: window.$gz.type.NotifySubscription, + id: item.notifySubscriptionId + }); + }, + deleteItem(item) {}, + async getDataFromApi() { let vm = this; @@ -124,6 +165,11 @@ export default { ).name; temp[i].icon = window.$gz.util.iconForType(temp[i].ayaType); + + if (!temp[i].message) { + temp[i].message = + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tristique aliquam luctus. Suspendisse molestie lacus ac varius cursus. Praesent facilisis sem quam, vitae tincidunt ligula porttitor maximus. Sed quis mi commodo, dictum nunc sed, elementum leo. In tincidunt porta risus, et tristique orci congue at."; + } } vm.obj = [...temp]; @@ -230,7 +276,6 @@ function generateMenu(vm) { // async function initForm(vm) { await fetchTranslatedText(vm); - // await populateAyaTypeList(vm); await populateSelectionLists(vm); } @@ -239,44 +284,7 @@ async function initForm(vm) { // Ensures UI translated text is available // async function fetchTranslatedText(vm) { - await window.$gz.translation.cacheTranslations([ - // "NotifyDeliveryMethod", - // "NotifyEventType", - // "NotifyDeliveryAddress", - // "InTags", - // "NotifyEventObjectDeleted", - // "NotifyEventObjectCreated", - // "NotifyEventObjectModified", - // "NotifyEventWorkorderStatusChange", - // "NotifyEventContractExpiring", - // "NotifyEventCSRAccepted", - // "NotifyEventCSRRejected", - // "NotifyEventWorkorderClosed", - // "NotifyEventQuoteStatusChange", - // "NotifyEventQuoteStatusAge", - // "NotifyEventServiceBankDepleted", - // "NotifyEventReminderImminent", - // "NotifyEventScheduledOnWorkorder", - // "NotifyEventScheduledOnWorkorderImminent", - // "NotifyEventWorkorderCloseByPassed", - // "NotifyEventOutsideServiceOverdue", - // "NotifyEventOutsideServiceReceived", - // "NotifyEventPartRequestReceived", - // "NotifyEventNotifyHealthCheck", - // "NotifyEventBackupStatus", - // "NotifyEventCustomerServiceImminent", - // "NotifyEventPartRequested", - // "NotifyEventWorkorderTotalExceedsThreshold", - // "NotifyEventWorkorderStatusAge", - // "NotifyEventUnitWarrantyExpiry", - // "NotifyEventUnitMeterReadingMultipleExceeded", - // "NotifyEventDefaultNotification", - // "NotifyDeliveryMethodApp", - // "NotifyDeliveryMethodSMTP", - // "NotifyEventObjectAge", - // "NotifyEventServerOperationsProblem", - // "Duration" - ]); + await window.$gz.translation.cacheTranslations(["NotifySubscription"]); } ////////////////////// diff --git a/ayanova/src/views/home-notify-subscriptions.vue b/ayanova/src/views/home-notify-subscriptions.vue index d5f9deb1..bafe6764 100644 --- a/ayanova/src/views/home-notify-subscriptions.vue +++ b/ayanova/src/views/home-notify-subscriptions.vue @@ -7,7 +7,7 @@ > -->