2021-01-19 08:50:37 +01:00
|
|
|
import DateInput from "discourse/components/date-input";
|
2021-06-26 09:45:19 +02:00
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
2021-01-19 08:50:37 +01:00
|
|
|
|
2021-06-26 09:45:19 +02:00
|
|
|
export default DateInput.extend({
|
|
|
|
useNativePicker: false,
|
2022-06-15 08:59:09 +02:00
|
|
|
layoutName: "wizard/templates/components/wizard-date-input",
|
2021-06-26 09:45:19 +02:00
|
|
|
|
|
|
|
@discourseComputed()
|
|
|
|
placeholder() {
|
|
|
|
return this.format;
|
|
|
|
},
|
2021-11-21 20:53:12 +01:00
|
|
|
_opts() {
|
|
|
|
return {
|
2021-11-21 21:10:50 +01:00
|
|
|
format: this.format || "LL",
|
|
|
|
};
|
|
|
|
},
|
2021-06-26 09:45:19 +02:00
|
|
|
});
|