diff options
author | Pepijn <pepijnfens@gmail.com> | 2016-10-11 15:07:38 +0200 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-10-11 09:07:38 -0400 |
commit | 944bb1ba615ef5205f33191a4542f36002a4db23 (patch) | |
tree | 8a95e4081e050298491c46520fa45eaa70ee5ec7 /webapp/components/sidebar_right.jsx | |
parent | 6e9e41ebb500e0d343374421719f24c515958808 (diff) | |
download | chat-944bb1ba615ef5205f33191a4542f36002a4db23.tar.gz chat-944bb1ba615ef5205f33191a4542f36002a4db23.tar.bz2 chat-944bb1ba615ef5205f33191a4542f36002a4db23.zip |
First commit for toggling mentions using shortcut and button (#4169)
Also did some refactoring and moved code to actions
Fixed coding style errors
Diffstat (limited to 'webapp/components/sidebar_right.jsx')
-rw-r--r-- | webapp/components/sidebar_right.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/components/sidebar_right.jsx b/webapp/components/sidebar_right.jsx index ffafb9434..1f4c394bb 100644 --- a/webapp/components/sidebar_right.jsx +++ b/webapp/components/sidebar_right.jsx @@ -37,6 +37,7 @@ export default class SidebarRight extends React.Component { this.state = { searchVisible: SearchStore.getSearchResults() !== null, isMentionSearch: SearchStore.getIsMentionSearch(), + isFlaggedPosts: SearchStore.getIsFlaggedPosts(), postRightVisible: Boolean(PostStore.getSelectedPost()), expanded: false, fromSearch: false, @@ -125,7 +126,9 @@ export default class SidebarRight extends React.Component { } onShrink() { - this.setState({expanded: false}); + this.setState({ + expanded: false + }); } onSearchChange() { |