Skip to content

Commit

Permalink
Merge branch 'feat/two-level-qc-process-new-model' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Sep 9, 2024
2 parents 2fb5b67 + 520923a commit 33f865f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/directives/responsive.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const TABLET_BREAKPOINT = 768;

export class ResponsiveDirective implements OnInit, OnDestroy {

private subscribtion: Subscription;
private subscription: Subscription;
protected isVisible = true;
protected firstCall = true;

Expand All @@ -18,12 +18,14 @@ export class ResponsiveDirective implements OnInit, OnDestroy {
) {}

ngOnInit() {
this.subscribtion = this.responsiveService.onResize
this.subscription = this.responsiveService.onResize
.subscribe(windowWidth => this.updateComponent(windowWidth));
}

ngOnDestroy() {
this.subscribtion.unsubscribe();
if (this.subscription) {
this.subscription.unsubscribe();
}
}

hide() {
Expand Down

0 comments on commit 33f865f

Please sign in to comment.