@osovitny/anatoly 2.14.70 → 2.14.72

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.
@@ -1379,6 +1379,10 @@ class AppContextService extends BaseApiService {
1379
1379
  this.storageKeyName = 'appContext';
1380
1380
  this.subscription = null;
1381
1381
  this.successes = [];
1382
+ //Private Streams
1383
+ this._updated = new Subject();
1384
+ //Public Streams
1385
+ this.updated$ = this._updated.asObservable();
1382
1386
  this.baseUrl = '/api/appContext';
1383
1387
  }
1384
1388
  //Session
@@ -1421,6 +1425,11 @@ class AppContextService extends BaseApiService {
1421
1425
  this.successes = [];
1422
1426
  this.subscription.unsubscribe();
1423
1427
  this.subscription = null;
1428
+ if (data) {
1429
+ let now = new Date();
1430
+ console.log('AppContext has been updated at ' + now);
1431
+ this._updated.next(data);
1432
+ }
1424
1433
  }
1425
1434
  getCurrentPrivate(success = null, getCachedIfExist = true) {
1426
1435
  if (getCachedIfExist) {
@@ -2648,7 +2657,7 @@ class BaseComponent {
2648
2657
  dataLoadedAndNothingFound() {
2649
2658
  this.dataLoadedAndFound(false);
2650
2659
  }
2651
- dataLoadedAndFound(found) {
2660
+ dataLoadedAndFound(found = true) {
2652
2661
  this.dataLoading = false;
2653
2662
  this.dataLoaded = true;
2654
2663
  this.dataFound = found;