main
parent
faa9fe0d71
commit
fc737ec7c0
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)=>{
|
||||
|
|
|
|||
Loading…
Reference in New Issue