UX: disables all time col in activity metrics new dashboard
This commit also makes it work for old dashboard.
This commit is contained in:
parent
c67c2dc638
commit
94b1a8c841
|
@ -1,4 +1,5 @@
|
|||
export default Ember.Component.extend({
|
||||
allTime: true,
|
||||
tagName: 'tr',
|
||||
reverseColors: Ember.computed.match('report.type', /^(time_to_first_response|topics_with_no_response)$/),
|
||||
classNameBindings: ['reverseColors']
|
||||
|
|
|
@ -19,4 +19,6 @@
|
|||
{{number report.lastThirtyDaysCount}} {{d-icon "caret-up" class="up"}} {{d-icon "caret-down" class="down"}}
|
||||
</td>
|
||||
|
||||
<td class="value">{{number report.total}}</td>
|
||||
{{#if allTime}}
|
||||
<td class="value">{{number report.total}}</td>
|
||||
{{/if}}
|
||||
|
|
|
@ -72,12 +72,11 @@
|
|||
<th>{{i18n 'admin.dashboard.reports.yesterday'}}</th>
|
||||
<th>{{i18n 'admin.dashboard.reports.last_7_days'}}</th>
|
||||
<th>{{i18n 'admin.dashboard.reports.last_30_days'}}</th>
|
||||
<th>{{i18n 'admin.dashboard.reports.all'}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#each reports as |report|}}
|
||||
{{admin-report-counts report=report}}
|
||||
{{admin-report-counts report=report allTime=false}}
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue