mirror of
https://github.com/goharbor/harbor
synced 2025-05-15 02:26:12 +00: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>
|
<option value="oidc_auth">{{'CONFIG.AUTH_MODE_OIDC' | translate }}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<a href="{{currentConfig?.auth_mode?.value==='oidc_auth'?'https://openid.net/connect/':'/'}}"
|
<a href="javascript:void(0)" role="tooltip" aria-haspopup="true" class="tooltip tooltip-lg tooltip-top-right top-1">
|
||||||
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">
|
|
||||||
<clr-icon shape="info-circle" size="24" class="info-tips-icon"></clr-icon>
|
<clr-icon shape="info-circle" size="24" class="info-tips-icon"></clr-icon>
|
||||||
<span class="tooltip-content">{{'CONFIG.TOOLTIP.AUTH_MODE' | translate}}</span>
|
<span class="tooltip-content">{{'CONFIG.TOOLTIP.AUTH_MODE' | translate}}</span>
|
||||||
</a>
|
</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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="form-block" *ngIf="showUAA">
|
<section class="form-block" *ngIf="showUAA">
|
||||||
|
@ -16,5 +16,8 @@ clr-tooltip {
|
|||||||
top: -5px;
|
top: -5px;
|
||||||
}
|
}
|
||||||
.oidc-tip {
|
.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');
|
console.error('Nothing changed');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public allowGoOidc(event) {
|
|
||||||
return this.currentConfig.auth_mode && this.currentConfig.auth_mode.value === 'oidc_auth';
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user