Skip to content

Commit

Permalink
fix: hide app when globalLoading is true to avoid unwanted behavior w…
Browse files Browse the repository at this point in the history
…hen switching apps (#218)

* fix: ocxSrc directive with external image url, ocx slots

* fix: loading remote component

* fix: lint issues

* fix: componentType may be undefined

* fix: improve permission cache, use of ocxSrc, fix overflow of user avatar menu

* fix: no permissions flickering

* fix: hide app when globalLoading is true to avoid unwanted behavior when switching apps

---------

Co-authored-by: kim.tran <[email protected]>
  • Loading branch information
KimFFVII and kim.tran authored Apr 12, 2024
1 parent d7eab05 commit 14d6e01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
<div class="layout-main">
<div class="layout-content relative">
<ocx-slot name="subHeader"></ocx-slot>

<ng-content></ng-content>
<router-outlet></router-outlet>
<ng-container *ngIf="(appStateService.globalLoading$ | async) === false">
<ng-content></ng-content>
<router-outlet></router-outlet>
</ng-container>
</div>

<ocx-shell-footer></ocx-shell-footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class PortalViewportComponent implements OnInit, AfterViewInit, OnDestroy
private renderer: Renderer2,
private primengConfig: PrimeNGConfig,
private messageService: MessageService,
private appStateService: AppStateService,
public appStateService: AppStateService,
private portalMessageService: PortalMessageService,
private userService: UserService,
private themeService: ThemeService,
Expand Down

0 comments on commit 14d6e01

Please sign in to comment.