2017-05-22 21:54:28 +05:30

14 lines
320 B
JavaScript

import DatePicker from "discourse/components/date-picker";
export default DatePicker.extend({
layoutName: "components/date-picker",
_opts() {
return {
defaultDate: new Date(this.get('defaultDate')) || new Date(),
setDefaultDate: !!this.get('defaultDate'),
maxDate: new Date(),
};
}
});