Browse Source

revert to auto notification name mapping

bertyhell/feature/translations-extraction-script
Louis Lam 3 years ago
parent
commit
d238ea60ba
  1. 24
      src/components/NotificationDialog.vue

24
src/components/NotificationDialog.vue

@ -13,7 +13,7 @@
<div class="mb-3">
<label for="notification-type" class="form-label">{{ $t("Notification Type") }}</label>
<select id="notification-type" v-model="notification.type" class="form-select">
<option v-for="type in notificationTypes" :key="type" :value="type">{{ translatedType }}</option>
<option v-for="type in notificationTypes" :key="type" :value="type">{{ $t(type) }}</option>
</select>
</div>
@ -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: {

Loading…
Cancel
Save