This commit is contained in:
@@ -47,6 +47,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
obj: [],
|
||||
eventTypes: [],
|
||||
lastOffset: 0,
|
||||
formState: {
|
||||
ready: false,
|
||||
@@ -182,6 +183,7 @@ function initForm(vm) {
|
||||
(async function() {
|
||||
try {
|
||||
await fetchTranslatedText(vm);
|
||||
await populateSelectionLists(vm);
|
||||
} catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
@@ -190,11 +192,44 @@ function initForm(vm) {
|
||||
});
|
||||
}
|
||||
|
||||
/////////////////////////////////
|
||||
//
|
||||
//
|
||||
function populateSelectionLists(vm) {
|
||||
vm.eventTypes.push(
|
||||
...[
|
||||
{ name: vm.$ay.t("EventDeleted"), id: 0 },
|
||||
{ name: vm.$ay.t("EventCreated"), id: 1 },
|
||||
{ name: vm.$ay.t("EventRetrieved"), id: 2 },
|
||||
{ name: vm.$ay.t("EventModified"), id: 3 },
|
||||
{ name: vm.$ay.t("EventAttachmentCreate"), id: 4 },
|
||||
{ name: vm.$ay.t("EventAttachmentDelete"), id: 5 },
|
||||
{ name: vm.$ay.t("EventAttachmentDownload"), id: 6 },
|
||||
{ name: vm.$ay.t("EventLicenseFetch"), id: 7 },
|
||||
{ name: vm.$ay.t("EventLicenseTrialRequest"), id: 8 },
|
||||
{ name: vm.$ay.t("EventServerStateChange"), id: 9 },
|
||||
{ name: vm.$ay.t("EventSeedDatabase"), id: 10 }
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////
|
||||
//
|
||||
// Ensures UI translated text is available
|
||||
//
|
||||
function fetchTranslatedText(vm) {
|
||||
return window.$gz.translation.fetch(["History?"]);
|
||||
return window.$gz.translation.fetch([
|
||||
"EventDeleted",
|
||||
"EventCreated",
|
||||
"EventRetrieved",
|
||||
"EventModified",
|
||||
"EventAttachmentCreate",
|
||||
"EventAttachmentDelete",
|
||||
"EventAttachmentDownload",
|
||||
"EventLicenseFetch",
|
||||
"EventLicenseTrialRequest",
|
||||
"EventServerStateChange",
|
||||
"EventSeedDatabase"
|
||||
]);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user