Skip to content

Commit

Permalink
fix toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux committed Jun 24, 2019
1 parent 6e2a4c6 commit f7eb87f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions ui/src/app/views/home/heatmap/home.heatmap.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { AppService } from 'app/app.service';
import { AuthentificationStore } from 'app/service/services.module';
Expand All @@ -19,7 +19,7 @@ import { ToolbarComponent } from './toolbar/toolbar.component';
styleUrls: ['./home.heatmap.scss']
})
@AutoUnsubscribe()
export class HomeHeatmapComponent implements OnInit {
export class HomeHeatmapComponent implements OnInit, AfterViewInit {

loading = true;
events: Array<Event>;
Expand Down Expand Up @@ -58,10 +58,7 @@ export class HomeHeatmapComponent implements OnInit {
this.filter = new TimelineFilter();
}

ngOnInit(): void {
if (!this._authStore.isConnected) {
return;
}
ngAfterViewInit() {
this.filterSub = this._timelineStore.getFilter().subscribe(f => {
this.filter = f;
this._appService.initFilter(this.filter);
Expand Down Expand Up @@ -137,6 +134,12 @@ export class HomeHeatmapComponent implements OnInit {
});
}
});

}
ngOnInit(): void {
if (!this._authStore.isConnected) {
return;
}
}

/**
Expand Down

0 comments on commit f7eb87f

Please sign in to comment.