@osovitny/anatoly 2.14.47 → 2.14.48
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 +9 -6
- package/fesm2015/osovitny-anatoly.mjs +8 -5
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +8 -5
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/core/services/appcontext.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1422,11 +1422,7 @@ class AppContextService extends BaseApiService {
|
|
|
1422
1422
|
this.subscription.unsubscribe();
|
|
1423
1423
|
this.subscription = null;
|
|
1424
1424
|
}
|
|
1425
|
-
|
|
1426
|
-
getLatestCurrent(success = null) {
|
|
1427
|
-
this.getCurrent(success, false);
|
|
1428
|
-
}
|
|
1429
|
-
getCurrent(success = null, getCachedIfExist = true) {
|
|
1425
|
+
getCurrentPrivate(success = null, getCachedIfExist = true) {
|
|
1430
1426
|
if (getCachedIfExist) {
|
|
1431
1427
|
let context = this.getCurrentFromSession();
|
|
1432
1428
|
if (context != null) {
|
|
@@ -1449,6 +1445,13 @@ class AppContextService extends BaseApiService {
|
|
|
1449
1445
|
}
|
|
1450
1446
|
});
|
|
1451
1447
|
}
|
|
1448
|
+
//Public
|
|
1449
|
+
getLatestCurrent(success = null) {
|
|
1450
|
+
this.getCurrentPrivate(success, false);
|
|
1451
|
+
}
|
|
1452
|
+
getCurrent(success = null) {
|
|
1453
|
+
this.getCurrentPrivate(success, true);
|
|
1454
|
+
}
|
|
1452
1455
|
updateCurrent(success = null) {
|
|
1453
1456
|
this.clearCurrent();
|
|
1454
1457
|
this.getLatestCurrent(success);
|