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