[+] Encapsulate method to update index

This commit is contained in:
Hykilpikonna
2019-10-14 17:57:18 -04:00
parent 9b4f5291f0
commit 4807c4babb
+10
View File
@@ -58,6 +58,16 @@ export default class Navigation extends Vue
window.history.pushState({lastTab: index}, '', url);
}
/**
* Update index
*
* @param newIndex New index
*/
private updateIndex(newIndex: string)
{
this.$emit('update:activeIndex', newIndex);
}
/**
* This function is called when the sign out button is clicked.
*/