asap-viewer 12.5.42 → 12.5.43

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.
@@ -12945,6 +12945,7 @@
12945
12945
  * @return {?}
12946
12946
  */
12947
12947
  function ($event) {
12948
+ console.log("[CursoVisualizadorComponent] eventNavBar", $event);
12948
12949
  if ($event == 'next') {
12949
12950
  this.next();
12950
12951
  }
@@ -14097,7 +14098,6 @@
14097
14098
  */
14098
14099
  function () {
14099
14100
  this.goToRedirect('onClose');
14100
- // this.dialogRef.close('done');
14101
14101
  };
14102
14102
  /**
14103
14103
  * @param {?} source
@@ -14111,6 +14111,7 @@
14111
14111
  console.log("[goToRedirect]", source, this.data.redirect);
14112
14112
  if (this.data.redirect) {
14113
14113
  this.router.navigateByUrl(this.data.redirect);
14114
+ this.dialogRef.close('redirecting');
14114
14115
  }
14115
14116
  };
14116
14117
  /**
@@ -14184,6 +14185,7 @@
14184
14185
  this.trailContentService = trailContentService;
14185
14186
  this.eventRefreshSideBar = new core.EventEmitter();
14186
14187
  this.eventNavbar = new core.EventEmitter();
14188
+ this.ratingOpened = false;
14187
14189
  }
14188
14190
  /**
14189
14191
  * @return {?}
@@ -14449,21 +14451,25 @@
14449
14451
  function (event) {
14450
14452
  var _this = this;
14451
14453
  if (event === void 0) { event = 'next'; }
14452
- /** @type {?} */
14453
- var dialogRef = this.dialog.open(ModalStarRatingComponent, {
14454
- width: '380px',
14455
- disableClose: true,
14456
- data: { id: this.id, owner: this, event: event, redirect: this.redirect }
14457
- });
14458
- dialogRef.afterClosed().subscribe((/**
14459
- * @param {?} result
14460
- * @return {?}
14461
- */
14462
- function (result) {
14463
- console.log('[ViewerComponente] ratingEvent -> ', result);
14464
- _this.eventNavbar.emit(result);
14465
- window.scrollTo(0, 0);
14466
- }));
14454
+ if (!this.ratingOpened) {
14455
+ this.ratingOpened = true;
14456
+ /** @type {?} */
14457
+ var dialogRef = this.dialog.open(ModalStarRatingComponent, {
14458
+ width: '380px',
14459
+ disableClose: true,
14460
+ data: { id: this.id, owner: this, event: event, redirect: this.redirect }
14461
+ });
14462
+ dialogRef.afterClosed().subscribe((/**
14463
+ * @param {?} result
14464
+ * @return {?}
14465
+ */
14466
+ function (result) {
14467
+ _this.ratingOpened = false;
14468
+ console.log('[ViewerComponente] ratingEvent -> ', result);
14469
+ _this.eventNavbar.emit(result);
14470
+ window.scrollTo(0, 0);
14471
+ }));
14472
+ }
14467
14473
  };
14468
14474
  ViewerComponent.decorators = [
14469
14475
  { type: core.Component, args: [{
@@ -14521,6 +14527,8 @@
14521
14527
  /** @type {?} */
14522
14528
  ViewerComponent.prototype.redirect;
14523
14529
  /** @type {?} */
14530
+ ViewerComponent.prototype.ratingOpened;
14531
+ /** @type {?} */
14524
14532
  ViewerComponent.prototype.componentArray;
14525
14533
  /** @type {?} */
14526
14534
  ViewerComponent.prototype.loader;