SDA-4158 Welcome screen with input field should be displayed post upgrade

This commit is contained in:
sbenmoussati 2023-04-13 10:03:29 +02:00 committed by Salah Benmoussati
parent d4c40def00
commit 426a0b22e2
2 changed files with 12 additions and 3 deletions

View File

@ -563,6 +563,7 @@ export class WindowHandler {
message: '',
urlValid: !!podUrl,
isPodConfigured: !!podUrl,
isFirstTimeLaunch: config.isFirstTimeLaunch(),
isBrowserLoginEnabled: this.config.enableBrowserLogin,
browserLoginAutoConnect: this.config.browserLoginAutoConnect,
});

View File

@ -8,6 +8,7 @@ interface IState {
message: string;
urlValid: boolean;
isPodConfigured: boolean;
isFirstTimeLaunch: boolean;
isBrowserLoginEnabled: boolean;
browserLoginAutoConnect: boolean;
isLoading: boolean;
@ -32,6 +33,7 @@ export default class Welcome extends React.Component<{}, IState> {
message: '',
urlValid: false,
isPodConfigured: false,
isFirstTimeLaunch: false,
isBrowserLoginEnabled: true,
browserLoginAutoConnect: false,
isLoading: false,
@ -43,8 +45,14 @@ export default class Welcome extends React.Component<{}, IState> {
* Render the component
*/
public render(): JSX.Element {
const { url, message, isPodConfigured, isLoading, isBrowserLoginEnabled } =
this.state;
const {
url,
message,
isPodConfigured,
isLoading,
isBrowserLoginEnabled,
isFirstTimeLaunch,
} = this.state;
return (
<div className='Welcome' lang={i18n.getLocale()}>
<div className='Welcome-content'>
@ -58,7 +66,7 @@ export default class Welcome extends React.Component<{}, IState> {
</span>
</React.Fragment>
)}
{!isPodConfigured && (
{(!isPodConfigured || isFirstTimeLaunch) && (
<React.Fragment>
<div
className='Welcome-about-symphony-text'