Manuel Tauber 2024-01-26 13:38:26 +01:00
parent faa9fe0d71
commit fc737ec7c0
2 changed files with 8 additions and 2 deletions

View File

@ -52,7 +52,9 @@
</mat-select>
</mat-form-field>
<h3 style="font-family: Arial, Helvetica, sans-serif;"><mat-icon style="color: green;">verified_user</mat-icon> RSSO User: {{this.userId}}</h3>
<h3 *ngIf="userId" style="font-family: Arial, Helvetica, sans-serif;"><mat-icon style="color: green;">verified_user</mat-icon> RSSO User: {{this.userId}}</h3>
<h3 *ngIf="!userId && !rssoInit" style="font-family: Arial, Helvetica, sans-serif;"><mat-icon style="color: red;">verified_user</mat-icon> RSSO Auth Failed</h3>
<h3 *ngIf="rssoInit" style="font-family: Arial, Helvetica, sans-serif;"><mat-icon style="color: orange;">verified_user</mat-icon> RSSO: initializing</h3>
<button mat-basic-button *ngIf="isUserPreset" class="editButton" (click)="openRenameDialog()" color="" style="" ><mat-icon>edit</mat-icon></button>
<button mat-basic-button *ngIf="isUserPreset" class="deleteButton" (click)="openDeleteDialog()" color="" style="" ><mat-icon>delete_forever</mat-icon></button>
</div>

View File

@ -164,7 +164,8 @@ export class NttGanttComponent implements OnInit {
public showSaveUnderButton: boolean = false;
public isUserPreset: boolean = false;
public userId : string = "";
public userId : string = null;
public rssoInit: boolean = true;
/**###################################################################### Initial Loading functions ######################################################################*/
@ -191,8 +192,11 @@ export class NttGanttComponent implements OnInit {
this.sliceEnd = 20;
this.dataService.getUser().then((res: any)=>{
console.log("##################");
console.log(res);
this.rssoInit = false;
this.userId = res.userId;
});
// this.dataService.initPresets().then((res: any)=>{