Skip to content

Commit

Permalink
wc: fix checking if sso mode is active in custom-landing and fix sso …
Browse files Browse the repository at this point in the history
…button style #TASK-5096
  • Loading branch information
jmjuanes committed Oct 18, 2023
1 parent b76daea commit fad455b
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/webcomponents/commons/layouts/custom-landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,20 +242,22 @@ export default class CustomLanding extends LitElement {
` : null}
<!-- Landing login -->
<div class="landing-login">
${this.opencgaSession?.opencgaClient?._config?.sso ? html`
${this.opencgaSession?.opencgaClient?._config?.sso?.active ? html`
<div>
<a class="btn-group" role="group" href="${this.getSSOUrl()}">
<button type="button" class="btn btn-primary btn-lg" style="">
<i class="fas fa-user"></i>
</button>
<button type="button" class="btn btn-primary btn-lg">
<strong style="color:white;">Login with SSO</strong>
</button>
</a>
</div>
<div class="landing-login-sso-helper">
By clicking on the <b>Login with SSO</b> button you will be redirected to your SSO login
page.
<div align="center">
<a class="btn-group" role="group" href="${this.getSSOUrl()}">
<button type="button" class="btn btn-primary btn-lg" style="">
<i class="fas fa-user"></i>
</button>
<button type="button" class="btn btn-primary btn-lg">
<strong style="color:white;">Login with SSO</strong>
</button>
</a>
</div>
<div class="landing-login-sso-helper">
By clicking on the <b>Login with SSO</b> button you will be redirected to your SSO login
page.
</div>
</div>
` : html`
<user-login
Expand Down

0 comments on commit fad455b

Please sign in to comment.