Skip to content

Commit

Permalink
Merge pull request #435 from kzi-nastava/fix/smart-tutor-recommendation
Browse files Browse the repository at this point in the history
Fixed enabling of assign tutor button
  • Loading branch information
darinkaloncar authored May 27, 2024
2 parents d6cf0ba + f6e1880 commit d87decf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ public void AssignTutor(CourseViewModel course)
Update();
}
public void Update()
{
SelectedCourse.TutorId = Constants.DELETED_TUTOR_ID;
{
Courses.Clear();
CourseService courseService = new();
foreach (Course course in courseService.GetAll())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public bool CreatedCourse()
var courseService = new CourseService();
if (courseService.CanCreateOrUpdate(Course.ToCourse()))
{
Trace.WriteLine("Usao da moze da create za " + Course.ToCourse().TutorId);
AssignTutor(Course);
courseService.Add(Course.ToCourse());
MessageBox.Show("Success!");
Expand Down
1 change: 1 addition & 0 deletions LangLang/WPF/Views/DirectorView/Tabs/CoursesReview.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ private void CoursesTable_SelectionChanged(object sender, SelectionChangedEventA

public void Update()
{
tutorBtn.IsEnabled = false;
CoursesVM.Update();
}
}
Expand Down

0 comments on commit d87decf

Please sign in to comment.