Skip to content

Commit d8ee0c1

Browse files
lsongsusexingzhang-suse
authored andcommitted
NVSHAS-9212 Display alerting msg in GET(/v1/eula) if the neuvector-binding-secret role(binding) is incorrect
1 parent 0636261 commit d8ee0c1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

admin/webapp/websrc/app/routes/pages/login/login.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@
118118
"
119119
>{{ 'login.PASSWORD_REQUIRED' | translate }}</span
120120
>
121+
<span class="text-info" *ngIf="validEula && loginForm.valid && rbacAlertMessage">
122+
{{rbacAlertMessage}}
123+
</span>
121124
</div>
122125
<div
123126
class="mt-xl clearfix"

admin/webapp/websrc/app/routes/pages/login/login.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class LoginComponent implements OnInit, OnDestroy {
5252
public isEulaAccepted: boolean = true;
5353
public isEulaValid: boolean = true;
5454
public validEula: boolean = true;
55+
public rbacAlertMessage: string = '';
5556
private version: string = '';
5657
private gpuEnabled: boolean = false;
5758
private originalUrl: string = '';
@@ -402,6 +403,9 @@ export class LoginComponent implements OnInit, OnDestroy {
402403
this.authService.getEula().subscribe(
403404
(eulaInfo: any) => {
404405
let eula = eulaInfo.eula;
406+
this.rbacAlertMessage = eulaInfo.k8s_rbac_alert_message
407+
? eulaInfo.k8s_rbac_alert_message
408+
: '';
405409
if (eula && eula.accepted) {
406410
this.isEulaAccepted = true;
407411
} else {

0 commit comments

Comments
 (0)