[+] Create method to check if the courses are ready

This commit is contained in:
Hykilpikonna
2019-08-24 21:16:13 +08:00
parent 0653deba64
commit 2b3cbb4061
+15
View File
@@ -83,6 +83,21 @@ export default class App extends Vue
});
}
/**
* Are assignments ready or not
*
* @returns boolean Ready or not
*/
private isAssignmentsReady(): boolean
{
for (const course of this.courses)
{
if (course.assignments == null) return false;
}
return true;
}
/**
* This is called when a navigation tab is clicked
*