|
@@ -165,7 +165,7 @@ class WorkspaceContent extends React.Component {
|
165
|
165
|
|
166
|
166
|
handleClickCreateContent = (e, idFolder, contentType) => {
|
167
|
167
|
e.stopPropagation()
|
168
|
|
- this.props.history.push(`${PAGE.WORKSPACE.NEW(this.state.workspaceIdInUrl, contentType, idFolder)}?parent_id=${idFolder}`)
|
|
168
|
+ this.props.history.push(`${PAGE.WORKSPACE.NEW(this.state.workspaceIdInUrl, contentType)}?parent_id=${idFolder}`)
|
169
|
169
|
}
|
170
|
170
|
|
171
|
171
|
handleUpdateAppOpenedType = openedAppType => this.setState({appOpenedType: openedAppType})
|
|
@@ -216,7 +216,7 @@ class WorkspaceContent extends React.Component {
|
216
|
216
|
parentClass='workspace__header__btnaddcontent'
|
217
|
217
|
idFolder={null} // null because it is workspace root content
|
218
|
218
|
onClickCreateContent={this.handleClickCreateContent}
|
219
|
|
- availableApp={contentType}
|
|
219
|
+ availableApp={contentType.filter(ct => ct.slug !== 'comment')} // @FIXME: Côme - 2018/08/21 - should use props.appList
|
220
|
220
|
/>
|
221
|
221
|
</PageTitle>
|
222
|
222
|
|
|
@@ -227,7 +227,7 @@ class WorkspaceContent extends React.Component {
|
227
|
227
|
{ filteredWorkspaceContentList.map((c, i) => c.type === 'folder'
|
228
|
228
|
? (
|
229
|
229
|
<Folder
|
230
|
|
- availableApp={contentType}
|
|
230
|
+ availableApp={contentType.filter(ct => ct.slug !== 'comment')} // @FIXME: Côme - 2018/08/21 - should use props.appList
|
231
|
231
|
folderData={c}
|
232
|
232
|
onClickItem={this.handleClickContentItem}
|
233
|
233
|
onClickExtendedAction={{
|
|
@@ -270,7 +270,7 @@ class WorkspaceContent extends React.Component {
|
270
|
270
|
customClass='workspace__content__button'
|
271
|
271
|
idFolder={null}
|
272
|
272
|
onClickCreateContent={this.handleClickCreateContent}
|
273
|
|
- availableApp={contentType}
|
|
273
|
+ availableApp={contentType.filter(ct => ct.slug !== 'comment')} // @FIXME: Côme - 2018/08/21 - should use props.appList
|
274
|
274
|
/>
|
275
|
275
|
</PageContent>
|
276
|
276
|
|