Refresh timeline when rendered state fires

pull/5226/merge
Oliver Günther 8 years ago
parent 894f78b964
commit 4444778205
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 6
      frontend/app/components/wp-table/timeline/wp-timeline-container.directive.ts

@ -70,6 +70,12 @@ export class WorkPackageTimelineTableController {
this.refreshView(); this.refreshView();
}); });
// Refresh timeline view after table rendered
states.table.rendered
.observeOnScope($scope)
.subscribe(() => this.refreshView());
// Refresh timeline view when becoming visible
states.table.timelineVisible states.table.timelineVisible
.observeOnScope($scope) .observeOnScope($scope)
.subscribe((visible) => { .subscribe((visible) => {

Loading…
Cancel
Save