Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
course-search-enroll-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Scott Berg
course-search-enroll-fe
Commits
e1756bbb
Commit
e1756bbb
authored
6 years ago
by
Isaac Evavold
Browse files
Options
Downloads
Patches
Plain Diff
ROENROLL-1555 let course be moved to term even if term has not offered courses
parent
5781cda1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/degree-planner/shared/course-item/course-item.component.ts
+1
-24
1 addition, 24 deletions
...egree-planner/shared/course-item/course-item.component.ts
with
1 addition
and
24 deletions
src/app/degree-planner/shared/course-item/course-item.component.ts
+
1
−
24
View file @
e1756bbb
...
...
@@ -133,11 +133,7 @@ export class CourseItemComponent implements OnInit {
const
isCourseInPlannedCourses
=
this
.
plannedCourses
.
some
(
course
=>
course
.
courseId
===
this
.
course
.
courseId
,
);
const
courseNotOfferedInTerm
=
this
.
plannedCourses
.
some
(
course
=>
course
.
studentEnrollmentStatus
===
'
DOESNOTEXIST
'
||
course
.
studentEnrollmentStatus
===
'
NOTOFFERED
'
,
);
if
(
isCourseInPlannedCourses
)
{
this
.
dialog
.
open
(
ConfirmDialogComponent
,
{
...
...
@@ -152,25 +148,6 @@ export class CourseItemComponent implements OnInit {
return
;
}
if
(
this
.
toActiveTerm
&&
courseNotOfferedInTerm
)
{
const
{
short
}
=
this
.
constants
.
subjectDescription
(
this
.
course
.
subjectCode
,
);
const
catalogNum
=
this
.
course
.
catalogNumber
;
const
termDesc
=
toTermCode
.
description
;
this
.
dialog
.
open
(
ConfirmDialogComponent
,
{
data
:
{
title
:
`Can't add course to term`
,
confirmText
:
'
OK
'
,
dialogClass
:
'
alertDialog
'
,
text
:
`
${
short
}
${
catalogNum
}
is not offered in
${
termDesc
}
`
,
},
})
.
afterClosed
();
return
;
}
switch
(
this
.
type
)
{
case
'
course
'
:
{
const
id
=
this
.
course
.
id
as
number
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment