@osovitny/anatoly 2.14.71 → 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.
- package/esm2020/lib/core/services/appcontext.service.mjs +11 -1
- package/fesm2015/osovitny-anatoly.mjs +9 -0
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +9 -0
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/core/services/appcontext.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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) {
|