@ardimedia/angular-portal-azure 0.2.104 → 0.2.106

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.
Files changed (2) hide show
  1. package/apn.js +8 -2
  2. package/package.json +1 -1
package/apn.js CHANGED
@@ -479,15 +479,21 @@ var angularportalazure;
479
479
  //#endregion
480
480
  //#region Methods
481
481
  BladeArea.prototype.raiseAddBladeEvent = function (args) {
482
+ var isActivated = false;
482
483
  this.blades.forEach(function (blade) {
483
484
  if (blade.path === args.path) {
484
485
  console.log('executing: blade.onActivate();');
486
+ console.log(blade.activate);
487
+ console.log(blade);
485
488
  blade.onActivate();
489
+ isActivated = true;
486
490
  return;
487
491
  }
488
492
  });
489
- console.log('broadcast: BladeArea.AddBlade');
490
- this.portalService.$rootScope.$broadcast('BladeArea.AddBlade', args);
493
+ if (!isActivated) {
494
+ console.log('broadcast: BladeArea.AddBlade');
495
+ this.portalService.$rootScope.$broadcast('BladeArea.AddBlade', args);
496
+ }
491
497
  };
492
498
  BladeArea.prototype.setFirstBlade = function (path) {
493
499
  this.clearAll();
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ardimedia/angular-portal-azure",
3
3
  "description": "Angular Portal Azure - GUI Framework.",
4
4
  "author": "Ardimedia Anstalt <info@ardimedia.com> (http://www.ardimedia.com)",
5
- "version": "0.2.104",
5
+ "version": "0.2.106",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {