mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 05:13:37 +08:00
Show a tick next to the selected period
This commit is contained in:
parent
ae063b52e8
commit
3f1f92b565
|
@ -47,7 +47,10 @@ export default class StatisticsWidget extends DashboardWidget {
|
|||
<div className="StatisticsWidget-label">
|
||||
<SelectDropdown buttonClassName="Button Button--text" caretIcon="caret-down">
|
||||
{Object.keys(this.periods).map(period => (
|
||||
<Button active={period === this.selectedPeriod} onclick={this.changePeriod.bind(this, period)}>
|
||||
<Button
|
||||
active={period === this.selectedPeriod}
|
||||
onclick={this.changePeriod.bind(this, period)}
|
||||
icon={period === this.selectedPeriod ? 'check' : true}>
|
||||
{app.translator.trans('flarum-statistics.admin.statistics.'+period+'_label')}
|
||||
</Button>
|
||||
))}
|
||||
|
|
Loading…
Reference in New Issue
Block a user