mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
17 lines
No EOL
449 B
JavaScript
17 lines
No EOL
449 B
JavaScript
Discourse.AdminReportsController = Ember.ObjectController.extend({
|
|
viewMode: 'table',
|
|
|
|
viewingTable: Em.computed.equal('viewMode', 'table'),
|
|
viewingBarChart: Em.computed.equal('viewMode', 'barChart'),
|
|
|
|
// 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');
|
|
}
|
|
|
|
}); |