SDA-3469 - Fix welcome screen title (#1297)

This commit is contained in:
Kiran Niranjan 2021-11-22 16:23:59 +05:30 committed by GitHub
parent d8f3fbe3b6
commit dd84f6ae3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -728,6 +728,7 @@ export class WindowHandler {
query: {
componentName: 'title-bar',
locale: i18n.getLocale(),
title: i18n.t('WelcomeText', 'Welcome')(),
},
slashes: true,
});

View File

@ -41,6 +41,7 @@ const loadStyle = (style) => {
const load = () => {
const query = new URL(window.location.href).searchParams;
const componentName = query.get('componentName');
const title = query.get('title');
let component;
switch (componentName) {
@ -92,6 +93,9 @@ const load = () => {
component = Welcome;
break;
case components.titleBar:
if (title) {
document.title = title;
}
loadStyle(components.titleBar);
component = WindowsTitleBar;
break;