diff --git a/ayanova/src/views/ops-notify-queue.vue b/ayanova/src/views/ops-notify-queue.vue index 041a9344..72c6c9ad 100644 --- a/ayanova/src/views/ops-notify-queue.vue +++ b/ayanova/src/views/ops-notify-queue.vue @@ -55,19 +55,7 @@ export default { return { obj: [], rawObj: [], - headers: [ - { - text: this.$ay.t("EventCreated"), - align: "start", - value: "created" - }, - { text: this.$ay.t("DeliverAfter"), value: "deliverAfter" }, - { text: this.$ay.t("NotifyEventType"), value: "eventType" }, - { text: this.$ay.t("AyaType"), value: "ayaType" }, - { text: this.$ay.t("Name"), value: "name" }, - { text: this.$ay.t("User"), value: "user" }, - { text: "", value: "actions", sortable: false } - ], + headers: [], formState: { ready: false, loading: true, @@ -261,6 +249,7 @@ function clickHandler(menuItem) { async function initForm(vm) { await fetchTranslatedText(vm); await cacheEnums(vm); + await createTableHeaders(vm); } ////////////////////////////////////////////////////////// @@ -273,7 +262,9 @@ async function fetchTranslatedText(vm) { "EventCreated", "AyaType", "Name", - "User" + "User", + "DeliverAfter", + "NotifyQueue" ]); } @@ -285,4 +276,23 @@ async function cacheEnums(vm) { await window.$gz.enums.fetchEnumList("NotifyEventType"); await window.$gz.enums.fetchEnumList("core"); } + +////////////////////// +// +// +async function createTableHeaders(vm) { + vm.headers = [ + { + text: vm.$ay.t("EventCreated"), + align: "start", + value: "created" + }, + { text: vm.$ay.t("DeliverAfter"), value: "deliverAfter" }, + { text: vm.$ay.t("NotifyEventType"), value: "eventType" }, + { text: vm.$ay.t("AyaType"), value: "ayaType" }, + { text: vm.$ay.t("Name"), value: "name" }, + { text: vm.$ay.t("User"), value: "user" }, + { text: "", value: "actions", sortable: false } + ]; +}