Open ihsaan-ullah opened 9 months ago
Strange behavior indeed. I guess it was done on purpose but it does not really makes sense.
See this file: https://github.com/codalab/codabench/blob/develop/src/static/riot/competitions/detail/submission_manager.tag
<button type="button" class="ui button right floated" disabled="{checked_submissions.length === 0}"
onclick="{delete_selected_submissions.bind(this)}">
<i class="icon trash alternate"></i>
Delete Submissions
</button>
<th if="{opts.admin}">
<div class="ui checkbox" onclick="{select_all_pressed.bind(this)}">
<input type="checkbox" name="select_all">
<label>All</label>
</div>
</th>
For some reason the "All" button does not increase the number of checked_submissions
(condition disabled="{checked_submissions.length === 0}
stays false).
When you select all
Rerun submisions
andDelete submissions
are disabledWhen you deselect one item, buttons are clickable
When you select all again, the buttons are still clickable