Commit 0bef1c40 authored by Korko's avatar Korko
Browse files

Fix randomForm min participants is 3 so don't let remove unless there's more

parent e153ff5f
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<select2 :name="'exclusions['+idx+'][]'" :options="participantNames" v-model="exclusions" placeholder="@lang('form.exclusions.placeholder')"></select2> <select2 :name="'exclusions['+idx+'][]'" :options="participantNames" v-model="exclusions" placeholder="@lang('form.exclusions.placeholder')"></select2>
</td> </td>
<td class="row participant-remove-wrapper"> <td class="row participant-remove-wrapper">
<button type="button" class="btn btn-danger participant-remove" :disabled="participants.length <= 2" @click="$emit('delete')"> <button type="button" class="btn btn-danger participant-remove" :disabled="participants.length <= 3" @click="$emit('delete')">
<span class="glyphicon glyphicon-minus"></span><span> @lang('form.participant.remove')</span> <span class="glyphicon glyphicon-minus"></span><span> @lang('form.participant.remove')</span>
</button> </button>
</td> </td>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment