mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
SDA-4101: Welcome screen does not focus after launch the SDA
This commit is contained in:
parent
22b5ba2dbb
commit
a6df7d3cfe
@ -118,6 +118,7 @@ exports[`welcome should render correctly 1`] = `
|
||||
className="Welcome-main-container-podurl-box"
|
||||
data-testid="Welcome-main-container-podurl-box"
|
||||
onChange={[Function]}
|
||||
tabIndex={0}
|
||||
type="url"
|
||||
value="https://[POD].symphony.com"
|
||||
/>
|
||||
@ -134,6 +135,7 @@ exports[`welcome should render correctly 1`] = `
|
||||
disabled={true}
|
||||
onClick={[Function]}
|
||||
style={Object {}}
|
||||
tabIndex={1}
|
||||
>
|
||||
log in
|
||||
</button>
|
||||
|
@ -569,6 +569,7 @@ export class WindowHandler {
|
||||
isSeamlessLoginEnabled: this.config.enableBrowserLogin,
|
||||
});
|
||||
this.didShowWelcomeScreen = true;
|
||||
this.mainWebContents.focus();
|
||||
}
|
||||
|
||||
// Injects custom title bar and snack bar css into the webContents
|
||||
|
@ -76,6 +76,7 @@ export default class Welcome extends React.Component<{}, IState> {
|
||||
<input
|
||||
data-testid={'Welcome-main-container-podurl-box'}
|
||||
className='Welcome-main-container-podurl-box'
|
||||
tabIndex={0}
|
||||
type='url'
|
||||
value={url}
|
||||
onChange={this.updatePodUrl.bind(this)}
|
||||
@ -167,6 +168,7 @@ export default class Welcome extends React.Component<{}, IState> {
|
||||
return (
|
||||
<button
|
||||
className='Welcome-continue-button'
|
||||
tabIndex={1}
|
||||
disabled={(!isPodConfigured && !urlValid) || isLoading}
|
||||
onClick={this.eventHandlers.onLogin}
|
||||
style={isPodConfigured ? { marginTop: '40px' } : {}}
|
||||
|
Loading…
Reference in New Issue
Block a user