@sumaris-net/ngx-components 2.4.23-rc1 → 2.4.23-rc2

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.
@@ -19053,28 +19053,29 @@ class ToolbarComponent {
19053
19053
  const replaceUrl = !this.routerOutlet.canGoBack();
19054
19054
  // Relative href
19055
19055
  if (this._backHref.startsWith('.')) {
19056
- await this.router.navigate([this._backHref], { relativeTo: this.route, replaceUrl });
19056
+ return this.router.navigate([this._backHref], { relativeTo: this.route, replaceUrl });
19057
19057
  }
19058
19058
  else {
19059
- await this.router.navigateByUrl(this._backHref, { replaceUrl });
19059
+ return this.router.navigateByUrl(this._backHref, { replaceUrl });
19060
19060
  }
19061
19061
  }
19062
19062
  else if (this.routerOutlet.canGoBack()) {
19063
- await this.routerOutlet.pop();
19063
+ return this.routerOutlet.pop();
19064
19064
  }
19065
19065
  else if (this._defaultBackHref) {
19066
19066
  // Relative href
19067
19067
  if (this._defaultBackHref.startsWith('.')) {
19068
- await this.router.navigate([this._defaultBackHref], { relativeTo: this.route, replaceUrl: true });
19068
+ return this.router.navigate([this._defaultBackHref], { relativeTo: this.route, replaceUrl: true });
19069
19069
  }
19070
19070
  else {
19071
- await this.router.navigateByUrl(this._defaultBackHref, {
19071
+ return this.router.navigateByUrl(this._defaultBackHref, {
19072
19072
  replaceUrl: true
19073
19073
  });
19074
19074
  }
19075
19075
  }
19076
19076
  else {
19077
19077
  console.error('[toolbar] Cannot go back. Missing attribute \'defaultBackHref\' or \'backHref\'');
19078
+ return false;
19078
19079
  }
19079
19080
  }
19080
19081
  tapClose(event) {