From 8e69cf79a6372b90ce2abf9c71620bf7106c77c6 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Sat, 22 Feb 2025 10:05:14 +0200 Subject: [PATCH] client: promoted attributes widget: add placeholder for blank input fields --- src/public/app/widgets/ribbon_widgets/promoted_attributes.js | 1 + src/public/translations/en/translation.json | 1 + src/public/translations/ro/translation.json | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/public/app/widgets/ribbon_widgets/promoted_attributes.js b/src/public/app/widgets/ribbon_widgets/promoted_attributes.js index 75ed276ec..3a298047e 100644 --- a/src/public/app/widgets/ribbon_widgets/promoted_attributes.js +++ b/src/public/app/widgets/ribbon_widgets/promoted_attributes.js @@ -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)); diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json index ea7dc176e..a915f3cca 100644 --- a/src/public/translations/en/translation.json +++ b/src/public/translations/en/translation.json @@ -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}}'", diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.json index 10fffdb76..5ed59339e 100644 --- a/src/public/translations/ro/translation.json +++ b/src/public/translations/ro/translation.json @@ -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",