aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout/Sidebar.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/layout/Sidebar.js')
-rw-r--r--src/components/layout/Sidebar.js36
1 files changed, 16 insertions, 20 deletions
diff --git a/src/components/layout/Sidebar.js b/src/components/layout/Sidebar.js
index 2bae57648..18492be80 100644
--- a/src/components/layout/Sidebar.js
+++ b/src/components/layout/Sidebar.js
@@ -14,7 +14,6 @@ import {
14 addNewServiceShortcutKey, 14 addNewServiceShortcutKey,
15 muteFerdiShortcutKey, 15 muteFerdiShortcutKey,
16} from '../../environment'; 16} from '../../environment';
17import { workspaceStore } from '../../features/workspaces';
18import { todosStore } from '../../features/todos'; 17import { todosStore } from '../../features/todos';
19import { todoActions } from '../../features/todos/actions'; 18import { todoActions } from '../../features/todos/actions';
20import AppStore from '../../stores/AppStore'; 19import AppStore from '../../stores/AppStore';
@@ -160,8 +159,7 @@ class Sidebar extends Component {
160 <i className="mdi mdi-lock" /> 159 <i className="mdi mdi-lock" />
161 </button> 160 </button>
162 ) : null} 161 ) : null}
163 {todosStore.isFeatureEnabled && 162 {todosStore.isFeatureEnabledByUser ? (
164 todosStore.isFeatureEnabledByUser ? (
165 <button 163 <button
166 type="button" 164 type="button"
167 onClick={() => { 165 onClick={() => {
@@ -179,23 +177,21 @@ class Sidebar extends Component {
179 <i className="mdi mdi-check-all" /> 177 <i className="mdi mdi-check-all" />
180 </button> 178 </button>
181 ) : null} 179 ) : null}
182 {workspaceStore.isFeatureEnabled ? ( 180 <button
183 <button 181 type="button"
184 type="button" 182 onClick={() => {
185 onClick={() => { 183 toggleWorkspaceDrawer();
186 toggleWorkspaceDrawer(); 184 this.updateToolTip();
187 this.updateToolTip(); 185 }}
188 }} 186 className={`sidebar__button sidebar__button--workspaces ${
189 className={`sidebar__button sidebar__button--workspaces ${ 187 isWorkspaceDrawerOpen ? 'is-active' : ''
190 isWorkspaceDrawerOpen ? 'is-active' : '' 188 }`}
191 }`} 189 data-tip={`${intl.formatMessage(
192 data-tip={`${intl.formatMessage( 190 workspaceToggleMessage,
193 workspaceToggleMessage, 191 )} (${workspaceToggleShortcutKey(false)})`}
194 )} (${workspaceToggleShortcutKey(false)})`} 192 >
195 > 193 <i className="mdi mdi-view-grid" />
196 <i className="mdi mdi-view-grid" /> 194 </button>
197 </button>
198 ) : null}
199 <button 195 <button
200 type="button" 196 type="button"
201 onClick={() => { 197 onClick={() => {