From 27197a55dcdc20072b261dc4f2dde16b84069f9d Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Sun, 27 May 2018 16:55:46 +0300 Subject: [PATCH] Improving the codebase --- .../directives/fuse-if-on-dom/fuse-if-on-dom.directive.ts | 4 +++- .../fuse-mat-sidenav/fuse-mat-sidenav.directive.ts | 5 ++++- src/@fuse/services/match-media.service.ts | 1 + .../{blocks => components}/content/content.component.html | 0 4 files changed, 8 insertions(+), 2 deletions(-) rename src/app/layout/{blocks => components}/content/content.component.html (100%) diff --git a/src/@fuse/directives/fuse-if-on-dom/fuse-if-on-dom.directive.ts b/src/@fuse/directives/fuse-if-on-dom/fuse-if-on-dom.directive.ts index cfe1cfb3..73b4af5d 100644 --- a/src/@fuse/directives/fuse-if-on-dom/fuse-if-on-dom.directive.ts +++ b/src/@fuse/directives/fuse-if-on-dom/fuse-if-on-dom.directive.ts @@ -5,7 +5,7 @@ import { AfterContentChecked, Directive, ElementRef, TemplateRef, ViewContainerR }) export class FuseIfOnDomDirective implements AfterContentChecked { - isCreated = false; + isCreated: boolean; /** * Constructor @@ -20,6 +20,8 @@ export class FuseIfOnDomDirective implements AfterContentChecked private _viewContainerRef: ViewContainerRef ) { + // Set the defaults + this.isCreated = false; } // ----------------------------------------------------------------------------------------------------- diff --git a/src/@fuse/directives/fuse-mat-sidenav/fuse-mat-sidenav.directive.ts b/src/@fuse/directives/fuse-mat-sidenav/fuse-mat-sidenav.directive.ts index 52570a7b..7b79144c 100644 --- a/src/@fuse/directives/fuse-mat-sidenav/fuse-mat-sidenav.directive.ts +++ b/src/@fuse/directives/fuse-mat-sidenav/fuse-mat-sidenav.directive.ts @@ -13,7 +13,7 @@ import { FuseMatSidenavHelperService } from '@fuse/directives/fuse-mat-sidenav/f export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy { @HostBinding('class.mat-is-locked-open') - isLockedOpen = true; + isLockedOpen: boolean; @Input('fuseMatSidenavHelper') id: string; @@ -39,6 +39,9 @@ export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy private _observableMedia: ObservableMedia ) { + // Set the defaults + this.isLockedOpen = true; + // Set the private defaults this._unsubscribeAll = new Subject(); } diff --git a/src/@fuse/services/match-media.service.ts b/src/@fuse/services/match-media.service.ts index 22159936..fdaa1f3c 100644 --- a/src/@fuse/services/match-media.service.ts +++ b/src/@fuse/services/match-media.service.ts @@ -45,4 +45,5 @@ export class FuseMatchMediaService } }); } + } diff --git a/src/app/layout/blocks/content/content.component.html b/src/app/layout/components/content/content.component.html similarity index 100% rename from src/app/layout/blocks/content/content.component.html rename to src/app/layout/components/content/content.component.html