2013-03-17 15:02:36 -04:00
|
|
|
Discourse.AdminReportsController = Ember.ObjectController.extend({
|
|
|
|
viewMode: 'table',
|
|
|
|
|
2013-05-29 13:33:54 -04:00
|
|
|
viewingTable: Em.computed.equal('viewMode', 'table'),
|
|
|
|
viewingBarChart: Em.computed.equal('viewMode', 'barChart'),
|
2013-03-17 15:02:36 -04:00
|
|
|
|
|
|
|
// Changes the current view mode to 'table'
|
|
|
|
viewAsTable: function() {
|
|
|
|
this.set('viewMode', 'table');
|
|
|
|
},
|
|
|
|
|
|
|
|
// Changes the current view mode to 'barChart'
|
|
|
|
viewAsBarChart: function() {
|
|
|
|
this.set('viewMode', 'barChart');
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|