[F] Update title after history
This commit is contained in:
@@ -77,12 +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)
|
||||||
|
{
|
||||||
// Debug output TODO: Remove this
|
// Debug output TODO: Remove this
|
||||||
console.log(`onNavigate: Previous: ${this.activeIndex}, New: ${newIndex}`);
|
console.log(`onNavigate: Previous: ${this.activeIndex}, New: ${newIndex}`);
|
||||||
|
|
||||||
@@ -93,6 +90,10 @@ export default class Navigation extends Vue
|
|||||||
window.history.pushState({lastTab: newIndex}, '', url);
|
window.history.pushState({lastTab: newIndex}, '', url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update title
|
||||||
|
document.title = 'Veracross Analyzer - ' + this.getTitle(newIndex);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get title for index
|
* Get title for index
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user