discourse/app/assets/javascripts/discourse/components/toggle_summary_component.js

21 lines
483 B
JavaScript

/**
The controls for toggling the summarized view on/off
@class ToggleSummaryComponent
@extends Ember.Component
@namespace Discourse
@module Discourse
**/
Discourse.ToggleSummaryComponent = Ember.Component.extend({
templateName: 'components/toggle-summary',
tagName: 'section',
classNames: ['information'],
postStream: Em.computed.alias('topic.postStream'),
actions: {
toggleSummary: function() {
this.get('postStream').toggleSummary();
}
}
});