Revert "[O] Make gradedCourses a getter instead of a field"

This reverts commit cc046010ff.
This commit is contained in:
Hykilpikonna
2020-08-01 15:58:49 -04:00
parent c65a6fb7da
commit a8b49f713b
+8 -6
View File
@@ -59,11 +59,6 @@ export default class App extends Vue
// Is the login panel shown // Is the login panel shown
showLogin: boolean = !this.demoMode showLogin: boolean = !this.demoMode
get gradedCourses()
{
return this.courses.filter(course => course.isGraded);
}
/** /**
* This is called when the instance is created. * This is called when the instance is created.
*/ */
@@ -143,7 +138,14 @@ export default class App extends Vue
}); });
// Wait for assignments to be ready. // Wait for assignments to be ready.
pWaitFor(() => this.courses.every(c => c.rawAssignments != null)).then(this.checkGradingAlgorithms); pWaitFor(() => this.courses.every(c => c.rawAssignments != null)).then(() =>
{
// Filter courses
this.gradedCourses = this.courses.filter(c => c.isGraded);
// Check grading algorithms
this.checkGradingAlgorithms();
});
} }
/** /**