diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000000000000000000000000000000000..96ff3a660ef015be7b7e1bd4dba51e1cd4863a67 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "skipFiles": [ + "<node_internals>/**" + ], + "program": "${workspaceFolder}/gulpfile.js" + } + ] +} \ No newline at end of file diff --git a/hypha/static_src/src/app/src/containers/Determination.js b/hypha/static_src/src/app/src/containers/Determination.js index c821f2b834c495c146f74f009e63fc74f5a5518a..662486338ea58de3a6229eb0b1536f5b13149dd1 100644 --- a/hypha/static_src/src/app/src/containers/Determination.js +++ b/hypha/static_src/src/app/src/containers/Determination.js @@ -37,7 +37,7 @@ class DeterminationContainer extends React.PureComponent { {this.props.determinationDraftStatus && <div className="status-actions"><button onClick = {() => this.props.toggleDeterminationForm(true)} className="button button--primary button--half-width">Update draft</button></div>} {!this.props.determinationDraftStatus && - this.props.submission.actions.some(action => action.display.includes("Determination")) && <div className="status-actions"><button onClick = {() => this.props.toggleDeterminationForm(true)} className="button button--primary button--full-width">Add determination</button></div>} + this.props.submission.actionButtons.addDetermination && <div className="status-actions"><button onClick = {() => this.props.toggleDeterminationForm(true)} className="button button--primary button--full-width">Add determination</button></div>} </SidebarBlock> : null }