From 1905ad536a12464b850c7991dde55f71fd7b4b2c Mon Sep 17 00:00:00 2001
From: Melvin Yeo <1024128+colorfusion@users.noreply.github.com>
Date: Tue, 4 Aug 2020 15:30:03 +0800
Subject: [PATCH] Change channel header button to toggle RHS (#106)
---
webapp/src/index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/webapp/src/index.js b/webapp/src/index.js
index 0f158e61..5f14a982 100644
--- a/webapp/src/index.js
+++ b/webapp/src/index.js
@@ -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(, () => store.dispatch(showRHSPlugin), 'Todo', 'Open your list of Todo issues.');
+ registry.registerChannelHeaderButtonAction(, () => store.dispatch(toggleRHSPlugin), 'Todo', 'Open your list of Todo issues.');
const refresh = () => {
store.dispatch(list(false, 'my'));