mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-28 09:14:32 -04:00
fix(edit-monitor): fix minification of translations containing { }
This commit is contained in:
parent
c3c273f9df
commit
b8093e909b
3 changed files with 11 additions and 6 deletions
|
@ -328,11 +328,11 @@ export default {
|
|||
},
|
||||
|
||||
bodyPlaceholder() {
|
||||
return this.$t("BodyPlaceholder");
|
||||
return this.decodeHtml(this.$t("BodyPlaceholder"));
|
||||
},
|
||||
|
||||
headersPlaceholder() {
|
||||
return this.$t("HeadersPlaceholder");
|
||||
return this.decodeHtml(this.$t("HeadersPlaceholder"));
|
||||
}
|
||||
|
||||
},
|
||||
|
@ -490,6 +490,12 @@ export default {
|
|||
addedNotification(id) {
|
||||
this.monitor.notificationIDList[id] = true;
|
||||
},
|
||||
|
||||
decodeHtml(html) {
|
||||
const txt = document.createElement("textarea");
|
||||
txt.innerHTML = html;
|
||||
return txt.value;
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue