mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-26 02:40:24 -06:00
SDA-3469 - Fix welcome screen title (#1297)
This commit is contained in:
parent
d8f3fbe3b6
commit
dd84f6ae3e
@ -728,6 +728,7 @@ export class WindowHandler {
|
||||
query: {
|
||||
componentName: 'title-bar',
|
||||
locale: i18n.getLocale(),
|
||||
title: i18n.t('WelcomeText', 'Welcome')(),
|
||||
},
|
||||
slashes: true,
|
||||
});
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user