Skip to content

Commit

Permalink
Merge pull request #6406 from getkirby/fix/6402-email-title-prop
Browse files Browse the repository at this point in the history
Fix email dialog title prop translation
  • Loading branch information
bastianallgeier committed Apr 30, 2024
2 parents 0077473 + 98332ba commit 7235440
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion panel/src/components/Dialogs/EmailDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {
icon: "email"
},
title: {
label: window.panel.$t("link.text"),
label: window.panel.$t("title"),
type: "text",
icon: "title"
}
Expand Down
13 changes: 13 additions & 0 deletions panel/src/components/Forms/Toolbar/EmailDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ import EmailDialog from "@/components/Dialogs/EmailDialog.vue";
export default {
extends: EmailDialog,
props: {
// eslint-disable-next-line vue/require-prop-types
fields: {
default: () => {
const fields = EmailDialog.props.fields.default();
// change the label to "Link Text"
fields.title.label = window.panel.$t("link.text");
return fields;
}
}
},
methods: {
submit() {
const email = this.values.href ?? "";
Expand Down

0 comments on commit 7235440

Please sign in to comment.