[+] Encapsulate method to update index
This commit is contained in:
@@ -58,6 +58,16 @@ export default class Navigation extends Vue
|
|||||||
window.history.pushState({lastTab: index}, '', url);
|
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.
|
* This function is called when the sign out button is clicked.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user