[+] Encapsulate method to get term end date

This commit is contained in:
Hykilpikonna
2019-11-09 15:32:25 -05:00
parent c6ccc5e311
commit 6504cc033b
+10
View File
@@ -76,4 +76,14 @@ export class CourseUtils
return selected == -1 ? Constants.TERMS[0] : Constants.TERMS[selected];
}
/**
* Get the end date of the selected term
*/
static getTermEndDate()
{
let selected = Navigation.instance.getSelectedGradingPeriod();
return selected == -1 ? Constants.TERMS[3] : Constants.TERMS[selected + 1];
}
}