This commit is contained in:
2020-07-24 21:25:12 +00:00
parent befd9c34eb
commit 7b8ba6562c

View File

@@ -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 }
];
}
</script>