@c8y/ngx-components 1011.0.33 → 1011.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -518,10 +518,7 @@
518
518
  $routeParams: params
519
519
  });
520
520
  // make sure showIf result is a promise with boolean result:
521
- return _this.injector
522
- .get('$q')
523
- .when(showIfResult)
524
- .then(Boolean);
521
+ return _this.injector.get('$q').when(showIfResult).then(Boolean);
525
522
  }
526
523
  : undefined
527
524
  }
@@ -790,9 +787,13 @@
790
787
  function Ng1ActionBarFactoryService(bridge) {
791
788
  this.bridge = bridge;
792
789
  this.routeChanges$ = bridge.$routeChanges;
790
+ this.$ng1RouteChangeSuccess = bridge.$ng1RouteChangeSuccess;
793
791
  }
794
792
  Ng1ActionBarFactoryService.prototype.get = function () {
795
- return this.bridge.getActionBarItems();
793
+ var _this = this;
794
+ return this.routeChanges$.pipe(operators.switchMap(function (e) {
795
+ return _this.bridge.getActionBarItems();
796
+ }));
796
797
  };
797
798
  return Ng1ActionBarFactoryService;
798
799
  }());