Skip to content

Commit

Permalink
Change channel header button to toggle RHS (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
colorfusion authored Aug 4, 2020
1 parent f84af9b commit 1905ad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export default class Plugin {
(postID) => store.dispatch(openRootModal(postID)),
);

const { showRHSPlugin } = registry.registerRightHandSidebarComponent(SidebarRight, 'Todo List');
const { toggleRHSPlugin, showRHSPlugin } = registry.registerRightHandSidebarComponent(SidebarRight, 'Todo List');
store.dispatch(setShowRHSAction(() => store.dispatch(showRHSPlugin)));
registry.registerChannelHeaderButtonAction(<ChannelHeaderButton/>, () => store.dispatch(showRHSPlugin), 'Todo', 'Open your list of Todo issues.');
registry.registerChannelHeaderButtonAction(<ChannelHeaderButton/>, () => store.dispatch(toggleRHSPlugin), 'Todo', 'Open your list of Todo issues.');

const refresh = () => {
store.dispatch(list(false, 'my'));
Expand Down

0 comments on commit 1905ad5

Please sign in to comment.