Fix radio buttons so they properly track the selected role

This commit is contained in:
richard-dds 2018-10-24 11:08:05 -04:00
parent c7471f9e8b
commit 9bb77208e2

View File

@ -103,16 +103,13 @@
<ul>
{% for choice in choices %}
<li class='block-list__item block-list__item--selectable'>
<input
name='radio_input_{{ env.id }}'
v-on:change.prevent='change'
type='radio'
id="env_{{ env.id }}_{{ choice[0] }}"
value='{{ choice[0] }}'
{% if "!{new_role}" == choice[0] %}
checked='checked'
{% endif %}
:checked="new_role === '{{ choice[0]}}'"
/>
<label for="env_{{ env.id }}_{{ choice[0] }}">
{% if choice[1].description %}