client: promoted attributes widget: add placeholder for blank input fields

This commit is contained in:
Adorian Doran 2025-02-22 10:05:14 +02:00
parent 46f543ad54
commit 8e69cf79a6
3 changed files with 4 additions and 1 deletions

View File

@ -155,6 +155,7 @@ export default class PromotedAttributesWidget extends NoteContextAwareWidget {
.attr("data-attribute-type", valueAttr.type)
.attr("data-attribute-name", valueAttr.name)
.prop("value", valueAttr.value)
.prop("placeholder", t("promoted_attributes.unset-field-placeholder"))
.addClass("form-control")
.addClass("promoted-attribute-input")
.on("change", (event) => this.promotedAttributeChanged(event));

View File

@ -824,6 +824,7 @@
},
"promoted_attributes": {
"promoted_attributes": "Promoted Attributes",
"unset-field-placeholder": "not set",
"url_placeholder": "http://website...",
"open_external_link": "Open external link",
"unknown_label_type": "Unknown label type '{{type}}'",

View File

@ -944,7 +944,8 @@
"remove_this_attribute": "Elimină acest atribut",
"unknown_attribute_type": "Tip de atribut necunoscut „{{type}}”",
"unknown_label_type": "Tip de etichetă necunoscut „{{type}}”",
"url_placeholder": "http://siteweb..."
"url_placeholder": "http://siteweb...",
"unset-field-placeholder": "nesetat"
},
"prompt": {
"defaultTitle": "Aviz",