- Upgrades Ember to latest - Fixes a bunch of bugs with page titles and missing "active" states
27 lines
589 B
JavaScript
27 lines
589 B
JavaScript
/**
|
|
The controls for toggling the summarized view on/off
|
|
|
|
@class ToggleSummaryComponent
|
|
@extends Ember.Component
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.ToggleSummaryComponent = Ember.View.extend({
|
|
templateName: 'components/toggle-summary',
|
|
tagName: 'section',
|
|
classNames: ['information'],
|
|
postStream: Em.computed.alias('topic.postStream'),
|
|
|
|
init: function() {
|
|
this._super();
|
|
this.set('context', this);
|
|
this.set('controller', this);
|
|
},
|
|
|
|
actions: {
|
|
toggleSummary: function() {
|
|
this.get('postStream').toggleSummary();
|
|
}
|
|
}
|
|
});
|