mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
DEV: Make DatePicker placeholder customizable (#24911)
This commit is contained in:
parent
25d9927785
commit
9f00c16a7a
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user