[F] Update title after history

This commit is contained in:
Hykilpikonna
2019-10-20 21:59:11 -04:00
parent 51ea0c7a80
commit 07991b2a0e
+6 -5
View File
@@ -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
* *