mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 08:53:45 +08:00
48193767bf
Automatically generated by `eslint --fix` to satisfy the updated configuration
21 lines
526 B
JavaScript
21 lines
526 B
JavaScript
import Component from "@glimmer/component";
|
|
import { tracked } from "@glimmer/tracking";
|
|
import { action } from "@ember/object";
|
|
|
|
export default class CustomDateRange extends Component {
|
|
@tracked startDate = this.args.model.startDate;
|
|
@tracked endDate = this.args.model.endDate;
|
|
|
|
@action
|
|
onChangeDateRange(range) {
|
|
this.startDate = range.from;
|
|
this.endDate = range.to;
|
|
}
|
|
|
|
@action
|
|
updateDateRange() {
|
|
this.args.model.setCustomDateRange(this.startDate, this.endDate);
|
|
this.args.closeModal();
|
|
}
|
|
}
|