Skip to content

Commit baf5336

Browse files
authored
Merge pull request #161 from amolsontakke3576/bug/gerrit_login_timeout
2 parents 74858c6 + be94cdd commit baf5336

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/app/shared/services/auth.service.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,16 @@ export class AuthService {
121121
}
122122

123123
login() {
124-
125-
setTimeout(() => {
124+
// Need to increase timeout to 1500 as for slower network it gives an error
125+
// Cannot read property 'querySelector' of null
126+
setTimeout(() => {
126127
const button = document
127128
.querySelector('#lfx-header')
128129
.shadowRoot.querySelector('.lfx-header.is-login-link') as HTMLElement;
129130
if (button) {
130131
button.click();
131132
}
132-
}, 500)
133+
}, 1500)
133134
}
134135

135136
logout() {

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link rel="icon" type="image/x-icon" href="https://cdn.platform.linuxfoundation.org/assets/lf-favicon.png">
1515
</head>
1616
<body>
17-
<lfx-header product="LF CLA" docslink="https://docs.linuxfoundation.org/docs/v/v2/communitybridge/easycla"
17+
<lfx-header product="LF CLA" docslink="https://docs.linuxfoundation.org/lfx/v/v2/easycla"
1818
supportlink="https://jira.linuxfoundation.org/plugins/servlet/theme/portal/4/create/143" id="lfx-header"
1919
faqlink="https://docs.linuxfoundation.org/lfx/easycla/getting-started/easycla-faqs">
2020
</lfx-header>

0 commit comments

Comments
 (0)