mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-17 07:45:24 +01:00
Merge pull request #7753 from jwangyangls/addOidcMoreLink
Add Oidc more info link in configration
This commit is contained in:
commit
4218206b59
@ -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">
|
||||
|
@ -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;
|
||||
}
|
@ -233,8 +233,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';
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user