Skip to content

Commit

Permalink
Merge pull request #161 from amolsontakke3576/bug/gerrit_login_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
dealako authored Dec 17, 2020
2 parents 74858c6 + be94cdd commit baf5336
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/app/shared/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,16 @@ export class AuthService {
}

login() {

setTimeout(() => {
// Need to increase timeout to 1500 as for slower network it gives an error
// Cannot read property 'querySelector' of null
setTimeout(() => {
const button = document
.querySelector('#lfx-header')
.shadowRoot.querySelector('.lfx-header.is-login-link') as HTMLElement;
if (button) {
button.click();
}
}, 500)
}, 1500)
}

logout() {
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link rel="icon" type="image/x-icon" href="https://cdn.platform.linuxfoundation.org/assets/lf-favicon.png">
</head>
<body>
<lfx-header product="LF CLA" docslink="https://docs.linuxfoundation.org/docs/v/v2/communitybridge/easycla"
<lfx-header product="LF CLA" docslink="https://docs.linuxfoundation.org/lfx/v/v2/easycla"
supportlink="https://jira.linuxfoundation.org/plugins/servlet/theme/portal/4/create/143" id="lfx-header"
faqlink="https://docs.linuxfoundation.org/lfx/easycla/getting-started/easycla-faqs">
</lfx-header>
Expand Down

0 comments on commit baf5336

Please sign in to comment.