From 860a982668ff15f0d61c7b3c5fad0c95bc1ac1ee Mon Sep 17 00:00:00 2001 From: "Shaun A. Noordin" Date: Thu, 19 Sep 2024 18:09:41 +0100 Subject: [PATCH] Project Builder: Drawing Tasks now checks if Slider experimental tool is available before allowing adding Slider subtasks --- .../tasks/drawing-task-details-editor.cjsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/app/classifier/tasks/drawing-task-details-editor.cjsx b/app/classifier/tasks/drawing-task-details-editor.cjsx index 73e94747a9..7aae7904b8 100644 --- a/app/classifier/tasks/drawing-task-details-editor.cjsx +++ b/app/classifier/tasks/drawing-task-details-editor.cjsx @@ -87,17 +87,22 @@ module.exports = createReactClass Question {' '} - {' '} + { + if 'slider' in @props.project.experimental_tools + + } + {if 'slider' in @props.project.experimental_tools then ' '} {' '} + { if 'dropdown' in @props.project.experimental_tools