This commit is contained in:
@@ -55,19 +55,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
obj: [],
|
obj: [],
|
||||||
rawObj: [],
|
rawObj: [],
|
||||||
headers: [
|
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 }
|
|
||||||
],
|
|
||||||
formState: {
|
formState: {
|
||||||
ready: false,
|
ready: false,
|
||||||
loading: true,
|
loading: true,
|
||||||
@@ -261,6 +249,7 @@ function clickHandler(menuItem) {
|
|||||||
async function initForm(vm) {
|
async function initForm(vm) {
|
||||||
await fetchTranslatedText(vm);
|
await fetchTranslatedText(vm);
|
||||||
await cacheEnums(vm);
|
await cacheEnums(vm);
|
||||||
|
await createTableHeaders(vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////
|
||||||
@@ -273,7 +262,9 @@ async function fetchTranslatedText(vm) {
|
|||||||
"EventCreated",
|
"EventCreated",
|
||||||
"AyaType",
|
"AyaType",
|
||||||
"Name",
|
"Name",
|
||||||
"User"
|
"User",
|
||||||
|
"DeliverAfter",
|
||||||
|
"NotifyQueue"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -285,4 +276,23 @@ async function cacheEnums(vm) {
|
|||||||
await window.$gz.enums.fetchEnumList("NotifyEventType");
|
await window.$gz.enums.fetchEnumList("NotifyEventType");
|
||||||
await window.$gz.enums.fetchEnumList("core");
|
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>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user