[+] Update title when updating history
This commit is contained in:
@@ -2,6 +2,7 @@ import {Component, Prop, Vue} from 'vue-property-decorator';
|
|||||||
import Constants from '@/constants';
|
import Constants from '@/constants';
|
||||||
import {Course} from '@/components/app/app';
|
import {Course} from '@/components/app/app';
|
||||||
import {CourseUtils} from '@/utils/course-utils';
|
import {CourseUtils} from '@/utils/course-utils';
|
||||||
|
import {FormatUtils} from '@/utils/format-utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This component is the top navigation bar
|
* This component is the top navigation bar
|
||||||
@@ -76,6 +77,9 @@ export default class Navigation extends Vue
|
|||||||
// Call custom event
|
// Call custom event
|
||||||
this.$emit('update:activeIndex', newIndex);
|
this.$emit('update:activeIndex', newIndex);
|
||||||
|
|
||||||
|
// Update title
|
||||||
|
document.title = 'Veracross Analyzer - ' + this.getTitle(newIndex);
|
||||||
|
|
||||||
// Record or not
|
// Record or not
|
||||||
if (history != null && !history) return;
|
if (history != null && !history) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user