UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Platform One
P
Party Bus
Launchboard
launchboard-fe
Commits
61deaaa7
Commit
61deaaa7
authored
Apr 29, 2021
by
Keith Becker
Browse files
Refactor
parent
342c3e0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
src/components/Dialogs/SelectAddStudentsToCourseDialog.vue
src/components/Dialogs/SelectAddStudentsToCourseDialog.vue
+2
-11
No files found.
src/components/Dialogs/SelectAddStudentsToCourseDialog.vue
View file @
61deaaa7
...
@@ -58,6 +58,7 @@ import { setInputElementFocus } from "@/utils/events";
...
@@ -58,6 +58,7 @@ import { setInputElementFocus } from "@/utils/events";
import
{
SET_ERROR_MESSAGE
,
SET_ERROR_DIALOG
}
from
"
@/store/mutation-types
"
;
import
{
SET_ERROR_MESSAGE
,
SET_ERROR_DIALOG
}
from
"
@/store/mutation-types
"
;
import
CourseService
from
"
@/api/services/training
"
;
import
CourseService
from
"
@/api/services/training
"
;
import
UserSelectForCourse
from
"
@/components/Dialogs/DialogComponents/UserSelectForCourse
"
;
import
UserSelectForCourse
from
"
@/components/Dialogs/DialogComponents/UserSelectForCourse
"
;
import
{
availableSeatsInCourse
}
from
"
@/utils/course
"
;
export
default
{
export
default
{
name
:
"
SelectAddStudentsToCourseDialog
"
,
name
:
"
SelectAddStudentsToCourseDialog
"
,
...
@@ -139,17 +140,7 @@ export default {
...
@@ -139,17 +140,7 @@ export default {
areNoAvailableSeats
()
{
areNoAvailableSeats
()
{
return
this
.
availableSeatsInCourse
<
0
;
return
this
.
availableSeatsInCourse
<
0
;
},
},
availableSeatsInCourse
()
{
availableSeatsInCourse
,
let
seats
=
this
.
course
.
capacity
;
if
(
isNaN
(
seats
))
{
seats
=
10
;
}
if
(
!
isNaN
(
this
.
courseMembers
.
length
))
{
seats
-=
this
.
courseMembers
.
length
;
}
seats
-=
this
.
courseRegistrations
.
length
;
return
seats
;
},
canSubmit
()
{
canSubmit
()
{
return
(
return
(
this
.
isCourseSelected
&&
this
.
isCourseSelected
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment