[+] Encapsulate getGradingPeriods()
This commit is contained in:
@@ -162,6 +162,15 @@ export default class Course
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get currently selected grading periods
|
||||||
|
*/
|
||||||
|
get gradingPeriods(): number[]
|
||||||
|
{
|
||||||
|
let timeCode = Navigation.instance.getSelectedGradingPeriod();
|
||||||
|
return timeCode == -1 ? [0, 1, 2, 3] : [timeCode];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get assignments of the selected time
|
* Get assignments of the selected time
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user