mirror of https://github.com/rancher/dashboard.git
13 lines
325 B
JavaScript
13 lines
325 B
JavaScript
import { updatePageTitle } from '@shell/utils/title';
|
|
import { getVendor } from '@shell/config/private-label';
|
|
|
|
export function install(router) {
|
|
router.afterEach(updatePageTitleOnChange);
|
|
}
|
|
|
|
export async function updatePageTitleOnChange(to, from) {
|
|
if (from?.name !== to?.name) {
|
|
updatePageTitle(getVendor());
|
|
}
|
|
}
|