This commit is contained in:
2020-04-23 20:54:06 +00:00
parent 2ebc123b84
commit 9bdfee1e57

View File

@@ -227,12 +227,16 @@ export default {
getIconColorForEvent(event) { getIconColorForEvent(event) {
switch (event) { switch (event) {
case 0: case 0:
case 5:
return "red lighten-2"; return "red lighten-2";
case 1: case 1:
case 4:
case 10: case 10:
return "green lighten-2"; return "green lighten-2";
//attachments all purple to distinguish when looking at object's history
case 4:
case 5:
case 6:
case 11:
return "purple lighten-2";
default: default:
return "primary lighten-2"; return "primary lighten-2";
} }
@@ -444,7 +448,8 @@ function populateEventTypeList(vm) {
name: vm.$ay.t("EventServerStateChange"), name: vm.$ay.t("EventServerStateChange"),
icon: "fa-plus" icon: "fa-plus"
}, },
10: { name: vm.$ay.t("EventSeedDatabase"), icon: "fa-plus" } 10: { name: vm.$ay.t("EventSeedDatabase"), icon: "fa-plus" },
11: { name: vm.$ay.t("EventAttachmentModified"), icon: "fa-save" }
}; };
} }
@@ -461,6 +466,7 @@ function fetchTranslatedText(vm) {
"EventAttachmentCreate", "EventAttachmentCreate",
"EventAttachmentDelete", "EventAttachmentDelete",
"EventAttachmentDownload", "EventAttachmentDownload",
"EventAttachmentModified",
"EventLicenseFetch", "EventLicenseFetch",
"EventLicenseTrialRequest", "EventLicenseTrialRequest",
"EventServerStateChange", "EventServerStateChange",