mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-4158 Welcome screen with input field should be displayed post upgrade
This commit is contained in:
parent
d4c40def00
commit
426a0b22e2
@ -563,6 +563,7 @@ export class WindowHandler {
|
||||
message: '',
|
||||
urlValid: !!podUrl,
|
||||
isPodConfigured: !!podUrl,
|
||||
isFirstTimeLaunch: config.isFirstTimeLaunch(),
|
||||
isBrowserLoginEnabled: this.config.enableBrowserLogin,
|
||||
browserLoginAutoConnect: this.config.browserLoginAutoConnect,
|
||||
});
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user