This commit is contained in:
2020-04-10 21:05:16 +00:00
parent 2cebf0c06f
commit 5c9b64d005
2 changed files with 36 additions and 21 deletions

View File

@@ -47,7 +47,7 @@ export default {
data() { data() {
return { return {
obj: [], obj: [],
eventTypes: [], eventTypes: {},
lastOffset: 0, lastOffset: 0,
formState: { formState: {
ready: false, ready: false,
@@ -115,7 +115,7 @@ export default {
languageName, languageName,
hour12 hour12
); );
temp[i].index = i; //TODO: PAGING for (let i = 0; i < vm.eventTypes.length; i) temp[i].index = i; //TODO: PAGING
} }
vm.obj = temp; //TODO: PAGING vm.obj = temp; //TODO: PAGING
@@ -196,21 +196,40 @@ function initForm(vm) {
// //
// //
function populateSelectionLists(vm) { function populateSelectionLists(vm) {
vm.eventTypes.push( vm.eventTypes = {
...[ 0: { name: vm.$ay.t("EventDeleted"), icon: "fa-trash-alt" },
{ name: vm.$ay.t("EventDeleted"), id: 0 }, 1: { name: vm.$ay.t("EventCreated"), icon: "fa-plus" },
{ name: vm.$ay.t("EventCreated"), id: 1 }, 2: {
{ name: vm.$ay.t("EventRetrieved"), id: 2 }, name: vm.$ay.t("EventRetrieved"),
{ name: vm.$ay.t("EventModified"), id: 3 }, icon: "fa-arrow-circle-down"
{ name: vm.$ay.t("EventAttachmentCreate"), id: 4 }, },
{ name: vm.$ay.t("EventAttachmentDelete"), id: 5 }, 3: { name: vm.$ay.t("EventModified"), icon: "fa-save" },
{ name: vm.$ay.t("EventAttachmentDownload"), id: 6 }, 4: {
{ name: vm.$ay.t("EventLicenseFetch"), id: 7 }, name: vm.$ay.t("EventAttachmentCreate"),
{ name: vm.$ay.t("EventLicenseTrialRequest"), id: 8 }, icon: "fa-plus"
{ name: vm.$ay.t("EventServerStateChange"), id: 9 }, },
{ name: vm.$ay.t("EventSeedDatabase"), id: 10 } 5: {
] name: vm.$ay.t("EventAttachmentDelete"),
); icon: "fa-trash-alt"
},
6: {
name: vm.$ay.t("EventAttachmentDownload"),
icon: "fa-arrow-circle-down"
},
7: {
name: vm.$ay.t("EventLicenseFetch"),
icon: "fa-ticket-alt"
},
8: {
name: vm.$ay.t("EventLicenseTrialRequest"),
icon: "fa-arrow-circle-down"
},
9: {
name: vm.$ay.t("EventServerStateChange"),
icon: "fa-plus"
},
10: { name: vm.$ay.t("EventSeedDatabase"), icon: "fa-plus" }
};
} }
////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////

View File

@@ -662,10 +662,6 @@ function generateMenu(vm) {
}); });
} }
//todo: get the last used report from the vuex form state and
//insert it here if it exists.
//was going to do multiple but that's a lot of fuckery and space eating
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: vm.$ay.t("New"), title: vm.$ay.t("New"),