UNCLASSIFIED

Commit d2f3d23e authored by Keith Becker's avatar Keith Becker
Browse files

clean up from merge

parent 3ad4dc91
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
availableSeatsInCourse( availableSeatsInCourse(
this.course.capacity, this.course.capacity,
this.courseMembers, this.courseMembers,
this.courseRegistrations this.course.registrations
) < 0 ) < 0
" "
:available-seats-in-course=" :available-seats-in-course="
availableSeatsInCourse( availableSeatsInCourse(
this.course.capacity, this.course.capacity,
this.courseMembers, this.courseMembers,
this.courseRegistrations this.course.registrations
) )
" "
:update-course-members="updateCourseMembers" :update-course-members="updateCourseMembers"
...@@ -99,7 +99,6 @@ export default { ...@@ -99,7 +99,6 @@ export default {
name: "", name: "",
startDate: "", startDate: "",
}, },
courseRegistrations: [],
courseMembers: [], courseMembers: [],
}; };
}, },
...@@ -118,7 +117,7 @@ export default { ...@@ -118,7 +117,7 @@ export default {
const result = await CourseService.getCourseRegistrationsById( const result = await CourseService.getCourseRegistrationsById(
this.course.id this.course.id
); );
this.courseRegistrations = result.registrations; this.course.registrations = result.registrations;
}, },
}; };
</script> </script>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
hint="* Required" hint="* Required"
:persistent-hint="true" :persistent-hint="true"
></v-text-field> ></v-text-field>
<div id="select-add-student-dialog-text-divider"></div> <div class="mt-5"></div>
<UserSelectForCourse <UserSelectForCourse
:are-no-available-seats=" :are-no-available-seats="
availableSeatsInCourse( availableSeatsInCourse(
...@@ -156,15 +156,3 @@ export default { ...@@ -156,15 +156,3 @@ export default {
}, },
}; };
</script> </script>
<style scoped>
.course-select-dialog-user-select {
margin-top: 40px;
}
#select-add-student-dialog-text {
height: 400px !important;
}
#select-add-student-dialog-text-divider {
height: 40px !important;
}
</style>
...@@ -118,17 +118,10 @@ ...@@ -118,17 +118,10 @@
Email Selected Email Selected
</v-btn> </v-btn>
</div> </div>
<AddStudentsToCourseDialog
:course-id="currentCourseId"
:show-dialog="state.isAddingStudent"
v-on:close-dialog="closeAddStudentDialog"
v-on:update-students="fetchDebounced"
/>
</v-container> </v-container>
</template> </template>
<script> <script>
import AddStudentsToCourseDialog from "@/components/Dialogs/AddStudentsToCourseDialog";
import TrainingService from "@/api/services/training"; import TrainingService from "@/api/services/training";
import { debounceTimeout } from "@/config/config"; import { debounceTimeout } from "@/config/config";
import inputRules from "@/utils/inputRules"; import inputRules from "@/utils/inputRules";
...@@ -146,7 +139,7 @@ import { minimumWait } from "@/utils/timing"; ...@@ -146,7 +139,7 @@ import { minimumWait } from "@/utils/timing";
const minCheckBoxWaitTime = 500; // ms const minCheckBoxWaitTime = 500; // ms
export default { export default {
name: "TrainingAttendance", name: "TrainingAttendance",
components: { AddStudentsToCourseDialog }, components: {},
props: { props: {
trainingCourse: { trainingCourse: {
type: Object, type: Object,
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</v-btn> </v-btn>
<AddStudentsToCourseDialog <AddStudentsToCourseDialog
:show-dialog="state.isAddingStudent" :show-dialog="state.isAddingStudent"
:course-id="$route.params.trainingId" :course-id="Number.parseInt($route.params.trainingId)"
v-on:close-dialog="closeAddStudentDialog" v-on:close-dialog="closeAddStudentDialog"
v-on:update-students="fetchDebounced" v-on:update-students="fetchDebounced"
/> />
......
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