diff --git a/src/components/navigation/navigation.ts b/src/components/navigation/navigation.ts index b69f97f..2cb719e 100644 --- a/src/components/navigation/navigation.ts +++ b/src/components/navigation/navigation.ts @@ -9,15 +9,20 @@ import Constants from '@/constants'; }) export default class Navigation extends Vue { - public activeIndex: string = '0'; + public activeIndex: string = 'overall'; @Prop() courses: any; /** * This function is called when the selection changes. + * + * @param index The index selected + * @param indexPath The path of the index */ - public onSelect() + public onSelect(index: string, indexPath: string) { + // Update active index + this.activeIndex = index; } }