mirror of
https://github.com/discourse/discourse.git
synced 2025-02-03 00:57:30 +08:00
21 lines
483 B
JavaScript
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();
|
|
}
|
|
}
|
|
});
|