mirror of
https://github.com/discourse/discourse.git
synced 2024-12-29 19:33:45 +08:00
b39f823fd3
* FEATURE: add custom date range filter for admin dashboard reports * Improvements per David's review
22 lines
501 B
Handlebars
22 lines
501 B
Handlebars
<DModal
|
|
class="custom-date-range-modal"
|
|
@title={{i18n "admin.dashboard.reports.dates"}}
|
|
@closeModal={{@closeModal}}
|
|
>
|
|
<:body>
|
|
<DateTimeInputRange
|
|
@from={{this.startDate}}
|
|
@to={{this.endDate}}
|
|
@onChange={{this.onChangeDateRange}}
|
|
@showFromTime={{false}}
|
|
@showToTime={{false}}
|
|
/>
|
|
</:body>
|
|
<:footer>
|
|
<DButton
|
|
@action={{this.updateDateRange}}
|
|
@label="admin.dashboard.reports.refresh_report"
|
|
@icon="sync"
|
|
/>
|
|
</:footer>
|
|
</DModal> |