UNCLASSIFIED

Commit 34ad1e6e authored by Keith Becker's avatar Keith Becker
Browse files

refactor UserSelectForCourse

parent fa67ac2b
...@@ -11,15 +11,27 @@ ...@@ -11,15 +11,27 @@
v-on:input="updateCourseMembers" v-on:input="updateCourseMembers"
v-bind:value="selectedMembers" v-bind:value="selectedMembers"
/> />
<label
class="text-left w-100 d-block text--white available-seats-label"
v-if="availableSeatsInCourse === 0"
>This course is full. You won't be able to add any students.</label
>
<label <label
v-if="isCourseSelected && !areNoAvailableSeats"
class="text-left w-100 d-block text--white available-seats-label" class="text-left w-100 d-block text--white available-seats-label"
>You have v-else-if="selectedMembers.length === 0"
>No users have been selected</label
>
<label
v-else-if="isCourseSelected && !areNoAvailableSeats"
class="text-left w-100 d-block text--white available-seats-label"
>You will have
{{ availableSeatsInCourse }} {{ availableSeatsInCourse }}
available seat reservation{{ available seat reservation{{
availableSeatsInCourse === 1 ? "" : "s" availableSeatsInCourse === 1 ? "" : "s"
}}</label }}
> remaining after adding {{ selectedMembers.length }} to the course
</label>
</div> </div>
</template> </template>
<script> <script>
......
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