Skip to content

Commit

Permalink
fixed tutor subject assignment in department not reflecting values un…
Browse files Browse the repository at this point in the history
…til refresh pressed.
  • Loading branch information
RbkGh committed Mar 26, 2017
1 parent f6729bd commit 39f767b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1221,9 +1221,8 @@ export class DepartmentComponent implements OnInit {
(response: TutorResponsePayload) => {
if (response.status === 0) {
this.modalUpdateTutorInDept.dismiss();
this.getAllDepartments();
swal("Success", "Tutor was updated successfully!.", "success");

this.refreshTutorsInDept();
} else {
swal("Error Occured", response.message || "Tutor was not updated.Try again later.", "error");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export class TimeTableComponent implements OnInit {

let periods: Array<PeriodOrLecture> = [];
for (let iPeriods: number = 1; iPeriods <= 10; iPeriods++) {
let period: PeriodOrLecture = new PeriodOrLecture("Period" + iPeriods, iPeriods, "", true, "subjectUniqueId", "SubjectFullName", "", "Ace Rbk Chief Keef");
let period: PeriodOrLecture = new PeriodOrLecture("Period" + iPeriods, iPeriods, "", true, "subjectUniqueId", "SubjectFullName", "", "Ace Rbk Chief Keef","pcb");
periods.push(period);
}
let programmeDay: ProgrammeDay = new ProgrammeDay("Monday", periods);
Expand Down

0 comments on commit 39f767b

Please sign in to comment.