Skip to content

Commit

Permalink
Loading spinner should show until all protected features have loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus-Goectau committed Sep 20, 2023
1 parent 210ffe7 commit 638bfcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</tr>
</table>

<div *ngIf="!modulesList || modulesList.length === 0">
<div *ngIf="!modulesList || modulesList.length === 0 || !cisaWorkflowStatusLoaded">
<div class="spinner-container" style="margin: 2em auto">
<div style="max-width: 50px; max-height: 50px;"></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class EnableProtectedComponent implements OnInit {
message: any;
enableFeatureButtonClick: boolean = false;
cisaWorkflowEnabled: boolean = false;
cisaWorkflowStatusLoaded: boolean = false;

constructor(private dialog: MatDialogRef<EnableProtectedComponent>,
private featureSvc: EnableFeatureService,
Expand All @@ -54,6 +55,7 @@ export class EnableProtectedComponent implements OnInit {

this.configSvc.getCisaAssessorWorkflow().subscribe((cisaWorkflowEnabled: boolean) => {
this.cisaWorkflowEnabled = cisaWorkflowEnabled;
this.cisaWorkflowStatusLoaded = true;
});
}

Expand Down

0 comments on commit 638bfcc

Please sign in to comment.