This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/components/date-picker-future.js.es6
Tarek Khalil b1cb95fc23
FEATURE: Introduce ignore duration selection (#7266)
* FEATURE: Introducing new UI for tracking User's ignored or muted states
2019-03-29 10:14:53 +00:00

17 lines
341 B
JavaScript

import DatePicker from "discourse/components/date-picker";
export default DatePicker.extend({
layoutName: "components/date-picker",
_opts() {
return {
defaultDate:
this.get("defaultDate") ||
moment()
.add(1, "day")
.toDate(),
setDefaultDate: !!this.get("defaultDate")
};
}
});