Add Oidc more info link in configration

Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
Yogi_Wang 2019-05-10 00:02:46 +08:00
parent 67c5542dd8
commit cd42637f51
3 changed files with 7 additions and 7 deletions

View File

@ -12,12 +12,12 @@
<option value="oidc_auth">{{'CONFIG.AUTH_MODE_OIDC' | translate }}</option>
</select>
</div>
<a href="{{currentConfig?.auth_mode?.value==='oidc_auth'?'https://openid.net/connect/':'/'}}"
target="{{currentConfig?.auth_mode?.value==='oidc_auth'?'_blank':''}}" role="tooltip" (click)="allowGoOidc($event)"
aria-haspopup="true" class="tooltip tooltip-lg tooltip-top-right top-1">
<a href="javascript:void(0)" role="tooltip" aria-haspopup="true" class="tooltip tooltip-lg tooltip-top-right top-1">
<clr-icon shape="info-circle" size="24" class="info-tips-icon"></clr-icon>
<span class="tooltip-content">{{'CONFIG.TOOLTIP.AUTH_MODE' | translate}}</span>
</a>
<a href="https://openid.net/connect/" *ngIf="currentConfig?.auth_mode?.value==='oidc_auth'" target="_blank"
class="more-info-link">{{ 'BUTTON.MORE_INFO' | translate }}</a>
</div>
</section>
<section class="form-block" *ngIf="showUAA">

View File

@ -16,5 +16,8 @@ clr-tooltip {
top: -5px;
}
.oidc-tip {
color: rgb(10, 74, 112);
color: rgb(10, 10, 10);
}
.more-info-link {
color: #101010;
}

View File

@ -251,8 +251,5 @@ export class ConfigurationAuthComponent implements OnChanges, OnInit {
console.error('Nothing changed');
}
}
public allowGoOidc(event) {
return this.currentConfig.auth_mode && this.currentConfig.auth_mode.value === 'oidc_auth';
}
}