From c8c0cc1346a4f34e3e629cdc77af8def1e418475 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Mon, 24 May 2021 21:22:45 -0700 Subject: [PATCH] event table --- .../pages/Admin/ToolBox/EventNotification.vue | 139 ++++++++---------- 1 file changed, 61 insertions(+), 78 deletions(-) diff --git a/frontend/src/pages/Admin/ToolBox/EventNotification.vue b/frontend/src/pages/Admin/ToolBox/EventNotification.vue index 015273b26..10e111f70 100644 --- a/frontend/src/pages/Admin/ToolBox/EventNotification.vue +++ b/frontend/src/pages/Admin/ToolBox/EventNotification.vue @@ -62,85 +62,46 @@ - - @@ -199,6 +160,22 @@ export default { mounted() { this.getAllNotifications(); }, + computed: { + headers() { + return [ + { text: this.$t("general.type"), value: "type" }, + { text: this.$t("general.name"), value: "name" }, + { text: this.$t("general.general"), value: "general", align: "center" }, + { text: this.$t("general.recipe"), value: "recipe", align: "center" }, + { text: this.$t("events.database"), value: "backup", align: "center" }, + { text: this.$t("events.scheduled"), value: "scheduled", align: "center" }, + { text: this.$t("settings.migrations"), value: "migration", align: "center" }, + { text: this.$t("group.group"), value: "group", align: "center" }, + { text: this.$t("user.user"), value: "user", align: "center" }, + { text: "Actions", align: "center" }, + ]; + }, + }, methods: { getIcon(textValue) { return this.notificationTypes.find(x => x.text === textValue); @@ -228,3 +205,9 @@ export default { }, }; + +