72699: isAuthBlocking$ rename to isNotAuthBlocking$

This commit is contained in:
Kristof De Langhe
2020-09-03 13:32:13 +02:00
parent 3d08eb0ae1
commit 5e970bcff2
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
<div class="outer-wrapper" *ngIf="isAuthBlocking$ | async; else authLoader"> <div class="outer-wrapper" *ngIf="isNotAuthBlocking$ | async; else authLoader">
<ds-admin-sidebar></ds-admin-sidebar> <ds-admin-sidebar></ds-admin-sidebar>
<div class="inner-wrapper" [@slideSidebarPadding]="{ <div class="inner-wrapper" [@slideSidebarPadding]="{
value: (!(sidebarVisible | async) ? 'hidden' : (slideSidebarOver | async) ? 'shown' : 'expanded'), value: (!(sidebarVisible | async) ? 'hidden' : (slideSidebarOver | async) ? 'shown' : 'expanded'),

View File

@@ -53,9 +53,9 @@ export class AppComponent implements OnInit, AfterViewInit {
models; models;
/** /**
* Whether or not the authenticated has finished loading * Whether or not the authentication is currently blocking the UI
*/ */
isAuthBlocking$: Observable<boolean>; isNotAuthBlocking$: Observable<boolean>;
constructor( constructor(
@Inject(NativeWindowService) private _window: NativeWindowRef, @Inject(NativeWindowService) private _window: NativeWindowRef,
@@ -94,7 +94,7 @@ export class AppComponent implements OnInit, AfterViewInit {
} }
ngOnInit() { ngOnInit() {
this.isAuthBlocking$ = this.store.pipe(select(isAuthenticationBlocking)).pipe( this.isNotAuthBlocking$ = this.store.pipe(select(isAuthenticationBlocking)).pipe(
map((isBlocking: boolean) => isBlocking === false), map((isBlocking: boolean) => isBlocking === false),
distinctUntilChanged() distinctUntilChanged()
); );