@osovitny/anatoly 3.20.42 → 3.20.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.
@@ -1405,6 +1405,11 @@ class ServiceBase {
1405
1405
  */
1406
1406
  //Node
1407
1407
  class GoServiceBase extends ServiceBase {
1408
+ //gets
1409
+ get currentApp() {
1410
+ this.ensureInitialized();
1411
+ return this._currentApp;
1412
+ }
1408
1413
  constructor(route, router) {
1409
1414
  super();
1410
1415
  this.route = route;
@@ -1416,7 +1421,7 @@ class GoServiceBase extends ServiceBase {
1416
1421
  ensureInitialized() {
1417
1422
  if (!this.initialized) {
1418
1423
  this.isDevMode = IsDevMode;
1419
- this.currentApp = getCurrentApp();
1424
+ this._currentApp = getCurrentApp();
1420
1425
  this.initialized = true;
1421
1426
  }
1422
1427
  }
@@ -1428,53 +1433,43 @@ class GoServiceBase extends ServiceBase {
1428
1433
  });
1429
1434
  }
1430
1435
  getHomeUrl() {
1431
- this.ensureInitialized();
1432
1436
  return this.currentApp.root;
1433
1437
  }
1434
1438
  locationReload() {
1435
1439
  window.location.reload();
1436
1440
  }
1437
1441
  home(reload = false) {
1438
- this.ensureInitialized();
1439
1442
  this.navigate([this.currentApp.root], {}, reload);
1440
1443
  }
1441
1444
  dashboard(reload = false) {
1442
- this.ensureInitialized();
1443
1445
  this.navigate([this.currentApp.root + '/dashboard'], {}, reload);
1444
1446
  }
1445
1447
  //Accounts
1446
1448
  accountClosed() {
1447
- this.ensureInitialized();
1448
1449
  this.navigate([this.currentApp.root + '/accounts/closed']);
1449
1450
  }
1450
1451
  //Errors
1451
1452
  error() {
1452
- this.ensureInitialized();
1453
1453
  this.navigate([this.currentApp.root + '/errors/error']);
1454
1454
  }
1455
1455
  //401 Unauthorized
1456
1456
  error401() {
1457
- this.ensureInitialized();
1458
1457
  this.navigate([this.currentApp.root + '/errors/401']);
1459
1458
  }
1460
1459
  //402 Payment Required
1461
1460
  error402() {
1462
- this.ensureInitialized();
1463
1461
  this.navigate([this.currentApp.root + '/errors/402']);
1464
1462
  }
1465
1463
  //403 Forbidden
1466
1464
  error403() {
1467
- this.ensureInitialized();
1468
1465
  this.navigate([this.currentApp.root + '/errors/403']);
1469
1466
  }
1470
1467
  //404 Not Found
1471
1468
  error404() {
1472
- this.ensureInitialized();
1473
1469
  this.navigate([this.currentApp.root + '/errors/404']);
1474
1470
  }
1475
1471
  //500 Internal Server Error
1476
1472
  error500() {
1477
- this.ensureInitialized();
1478
1473
  this.navigate([this.currentApp.root + '/errors/500']);
1479
1474
  }
1480
1475
  static { this.ɵfac = function GoServiceBase_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GoServiceBase)(i0.ɵɵinject(i1$1.ActivatedRoute), i0.ɵɵinject(i1$1.Router)); }; }