monkey-front-core 0.0.192 → 0.0.195
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/directives/monkeyecx-feature-by-program-directive.mjs +3 -3
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +4 -4
- package/fesm2015/monkey-front-core.mjs +7 -7
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +5 -5
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.195.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.192.tgz +0 -0
|
@@ -2220,10 +2220,10 @@ class MonkeyEcxCommonsService {
|
|
|
2220
2220
|
const { config, feature } = args;
|
|
2221
2221
|
try {
|
|
2222
2222
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(feature) ||
|
|
2223
|
-
!MonkeyEcxUtils.persistNullEmptyUndefined(config?.program?.settings[feature])) {
|
|
2223
|
+
!MonkeyEcxUtils.persistNullEmptyUndefined(config?.program?.settings?.[feature])) {
|
|
2224
2224
|
return false;
|
|
2225
2225
|
}
|
|
2226
|
-
return !config?.program?.settings[feature];
|
|
2226
|
+
return !config?.program?.settings?.[feature];
|
|
2227
2227
|
}
|
|
2228
2228
|
catch (e) {
|
|
2229
2229
|
// not to do
|
|
@@ -2400,7 +2400,7 @@ class MonkeyEcxCommonsService {
|
|
|
2400
2400
|
otherArgs?.callbackMain();
|
|
2401
2401
|
}
|
|
2402
2402
|
}
|
|
2403
|
-
else if (allowedByProgram) {
|
|
2403
|
+
else if (!allowedByProgram) {
|
|
2404
2404
|
this.navigateToErrorPage(404, otherArgs?.router);
|
|
2405
2405
|
}
|
|
2406
2406
|
else if (pend.hasPendencies) {
|
|
@@ -4483,10 +4483,10 @@ class MonkeyEcxFeatureByProgramDirective {
|
|
|
4483
4483
|
const { feature, config } = this;
|
|
4484
4484
|
let display = 'none';
|
|
4485
4485
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(feature) ||
|
|
4486
|
-
!MonkeyEcxUtils.persistNullEmptyUndefined(config?.program?.settings[feature])) {
|
|
4486
|
+
!MonkeyEcxUtils.persistNullEmptyUndefined(config?.program?.settings?.[feature])) {
|
|
4487
4487
|
return;
|
|
4488
4488
|
}
|
|
4489
|
-
const disabled = config?.program?.settings[feature];
|
|
4489
|
+
const disabled = config?.program?.settings?.[feature];
|
|
4490
4490
|
if (!disabled) {
|
|
4491
4491
|
display = 'block';
|
|
4492
4492
|
}
|