From d238ea60ba0437716f51795310ba8f81dc034c5b Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Wed, 20 Oct 2021 11:34:05 +0800 Subject: [PATCH] revert to auto notification name mapping --- src/components/NotificationDialog.vue | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index bb320be..362d9d3 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -13,7 +13,7 @@
@@ -103,28 +103,6 @@ export default { } return NotificationFormList[this.notification.type]; }, - translatedType() { - return { - "telegram": $t("telegram"), - "webhook": $t("webhook"), - "smtp": $t("smtp"), - "discord": $t("discord"), - "teams": $t("teams"), - "signal": $t("signal"), - "gotify": $t("gotify"), - "slack": $t("slack"), - "rocket.chat": $t("rocket.chat"), - "pushover": $t("pushover"), - "pushy": $t("pushy"), - "octopush": $t("octopush"), - "lunasea": $t("lunasea"), - "apprise": $t("apprise"), - "pushbullet": $t("pushbullet"), - "line": $t("line"), - "mattermost": $t("mattermostt"), - "matrix": $t("matrix"), - }[type]; - } }, watch: {