mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
- Improves styleguide support - Adds toggle color scheme to styleguide - Adds properties mutators to styleguide - Attempts to quit a session as soon as done with it in system specs, this should at least free resources faster - Refactors fabricators to simplify them - Adds more fabricators (uploads for example) - Starts implementing components pattern in system specs - Uses Chat::Message creator to create messages in system specs, this should help to have more real specs as the side effects should now happen
23 lines
680 B
Handlebars
23 lines
680 B
Handlebars
<StyleguideExample @title="<ChatComposer>">
|
|
<Styleguide::Component>
|
|
<Chat::Composer::Channel
|
|
@channel={{this.channel}}
|
|
@onSendMessage={{this.onSendMessage}}
|
|
/>
|
|
</Styleguide::Component>
|
|
|
|
<Styleguide::Controls>
|
|
<Styleguide::Controls::Row @name="Disabled">
|
|
<DToggleSwitch
|
|
@state={{this.channel.isReadOnly}}
|
|
{{on "click" this.toggleDisabled}}
|
|
/>
|
|
</Styleguide::Controls::Row>
|
|
<Styleguide::Controls::Row @name="Sending">
|
|
<DToggleSwitch
|
|
@state={{this.chatChannelPane.sending}}
|
|
{{on "click" this.toggleSending}}
|
|
/>
|
|
</Styleguide::Controls::Row>
|
|
</Styleguide::Controls>
|
|
</StyleguideExample> |