[+] Encapsulate get urlIndex in course

This commit is contained in:
Hykilpikonna
2019-12-21 12:56:13 -05:00
parent e90741b6bc
commit 082400abe8
+8
View File
@@ -302,4 +302,12 @@ export default class Course
{
return `course/${this.id}`
}
/**
* Get navigation index
*/
get urlIndex()
{
return {hash: this.urlHash, title: this.name}
}
}