|
@@ -65,38 +65,35 @@ class Sidebar extends React.Component {
|
65
|
65
|
return (
|
66
|
66
|
<div className={classnames('sidebar', {'sidebarclose': sidebarClose})}>
|
67
|
67
|
<div className='sidebar__expand' onClick={this.handleClickToggleSidebar}>
|
68
|
|
- { /* <i className={classnames('fa fa-fw', {'fa-plus-square-o': sidebarClose, 'fa-minus-square-o': !sidebarClose})} /> */ }
|
69
|
|
- <button className='hamburger hamburger--spring sidebar__expand__btnHamburger' type='button'>
|
70
|
|
- <span className='hamburger-box sidebar__expand__btnHamburger__box'>
|
71
|
|
- <span className='hamburger-inner sidebar__expand__btnHamburger__box__icon' />
|
72
|
|
- </span>
|
73
|
|
- </button>
|
|
68
|
+ <i className={classnames('fa fa-arrow-left', {'fa-arrow-right': sidebarClose, 'fa-arrow-left': !sidebarClose})} />
|
74
|
69
|
</div>
|
75
|
70
|
|
76
|
|
- <nav className='sidebar__navigation'>
|
77
|
|
- <ul className='sidebar__navigation__workspace'>
|
78
|
|
- { workspaceList.map((ws, i) =>
|
79
|
|
- <WorkspaceListItem
|
80
|
|
- number={++i}
|
81
|
|
- wsId={ws.id}
|
82
|
|
- name={ws.title}
|
83
|
|
- app={app}
|
84
|
|
- lang={activeLang}
|
85
|
|
- activeFilterList={ws.id === workspaceIdInUrl ? workspace.filter : []}
|
86
|
|
- isOpenInSidebar={ws.isOpenInSidebar}
|
87
|
|
- onClickTitle={() => this.handleClickWorkspace(ws.id, !ws.isOpenInSidebar)}
|
88
|
|
- onClickAllContent={this.handleClickAllContent}
|
89
|
|
- onClickContentFilter={this.handleClickContentFilter}
|
90
|
|
- key={ws.id}
|
91
|
|
- />
|
92
|
|
- )}
|
93
|
|
- </ul>
|
94
|
|
- </nav>
|
95
|
|
-
|
96
|
|
- <div className='sidebar__btnnewworkspace'>
|
97
|
|
- <button className='sidebar__btnnewworkspace__btn btn btn-success'>
|
98
|
|
- {t('Sidebar.create_new_workspace')}
|
99
|
|
- </button>
|
|
71
|
+ <div className='sidebarSticky'>
|
|
72
|
+ <nav className='sidebar__navigation'>
|
|
73
|
+ <ul className='sidebar__navigation__workspace'>
|
|
74
|
+ { workspaceList.map((ws, i) =>
|
|
75
|
+ <WorkspaceListItem
|
|
76
|
+ number={++i}
|
|
77
|
+ wsId={ws.id}
|
|
78
|
+ name={ws.title}
|
|
79
|
+ app={app}
|
|
80
|
+ lang={activeLang}
|
|
81
|
+ activeFilterList={ws.id === workspaceIdInUrl ? workspace.filter : []}
|
|
82
|
+ isOpenInSidebar={ws.isOpenInSidebar}
|
|
83
|
+ onClickTitle={() => this.handleClickWorkspace(ws.id, !ws.isOpenInSidebar)}
|
|
84
|
+ onClickAllContent={this.handleClickAllContent}
|
|
85
|
+ onClickContentFilter={this.handleClickContentFilter}
|
|
86
|
+ key={ws.id}
|
|
87
|
+ />
|
|
88
|
+ )}
|
|
89
|
+ </ul>
|
|
90
|
+ </nav>
|
|
91
|
+
|
|
92
|
+ <div className='sidebar__btnnewworkspace'>
|
|
93
|
+ <button className='sidebar__btnnewworkspace__btn btn btn-success'>
|
|
94
|
+ {t('Sidebar.create_new_workspace')}
|
|
95
|
+ </button>
|
|
96
|
+ </div>
|
100
|
97
|
</div>
|
101
|
98
|
</div>
|
102
|
99
|
)
|