DEV: Make DatePicker placeholder customizable (#24911)

This commit is contained in:
Jarek Radosz 2023-12-15 03:28:57 +01:00 committed by GitHub
parent 25d9927785
commit 9f00c16a7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 3 deletions

View File

@ -83,9 +83,16 @@ export default Component.extend({
}
},
@discourseComputed()
placeholder() {
return I18n.t("dates.placeholder");
@discourseComputed("_placeholder")
placeholder: {
get(_placeholder) {
return _placeholder || I18n.t("dates.placeholder");
},
set(value) {
this.set("_placeholder", value);
return value;
},
},
_opts() {