This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user