[+] Update title when updating history

This commit is contained in:
Hykilpikonna
2019-10-20 21:56:00 -04:00
parent 8b01428208
commit 51ea0c7a80
+4
View File
@@ -2,6 +2,7 @@ import {Component, Prop, Vue} from 'vue-property-decorator';
import Constants from '@/constants';
import {Course} from '@/components/app/app';
import {CourseUtils} from '@/utils/course-utils';
import {FormatUtils} from '@/utils/format-utils';
/**
* This component is the top navigation bar
@@ -76,6 +77,9 @@ export default class Navigation extends Vue
// Call custom event
this.$emit('update:activeIndex', newIndex);
// Update title
document.title = 'Veracross Analyzer - ' + this.getTitle(newIndex);
// Record or not
if (history != null && !history) return;