Skip to content

Commit

Permalink
Project Builder: Drawing Tasks now checks if Slider experimental tool…
Browse files Browse the repository at this point in the history
… is available before allowing adding Slider subtasks
  • Loading branch information
shaunanoordin committed Sep 19, 2024
1 parent 8036774 commit 860a982
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions app/classifier/tasks/drawing-task-details-editor.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,22 @@ module.exports = createReactClass
<small><strong>Question</strong></small>
</button>{' '}

<button type="submit" className="minor-button" onClick={@handleAddTask.bind this, 'slider'} title="Slider tasks: the volunteer uses a slider to select a numeric value.">
<i className="fa fa-sliders fa-2x"></i>
<br />
<small><strong>Slider</strong></small>
</button>{' '}
{
if 'slider' in @props.project.experimental_tools
<button type="submit" className="minor-button" onClick={@handleAddTask.bind this, 'slider'} title="Slider tasks: the volunteer uses a slider to select a numeric value.">
<i className="fa fa-sliders fa-2x"></i>
<br />
<small><strong>Slider</strong></small>
</button>
}
{if 'slider' in @props.project.experimental_tools then ' '}

<button type="submit" className="minor-button" onClick={@handleAddTask.bind this, 'text'} title="Text tasks: the volunteer writes free-form text into a dialog box.">
<i className="fa fa-file-text-o fa-2x"></i>
<br />
<small><strong>Text</strong></small>
</button>{' '}

{
if 'dropdown' in @props.project.experimental_tools
<button type="submit" className="minor-button" onClick={@handleAddTask.bind this, 'dropdown'} title="Dropdown tasks: the volunteer selects a text label from a list.">
Expand Down

0 comments on commit 860a982

Please sign in to comment.