identity-admin 1.22.7 → 1.22.8

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.
@@ -57,6 +57,7 @@ class ActionsGenerator {
57
57
  return extraActionsObject;
58
58
  }
59
59
  static getActions(actions, currentUser) {
60
+ var _a;
60
61
  var actionObject = {
61
62
  show: { isAccessible: true },
62
63
  new: { isAccessible: true },
@@ -68,7 +69,7 @@ class ActionsGenerator {
68
69
  return actionObject;
69
70
  }
70
71
  for (const key in actions) {
71
- if ((actions[key].hasOwnProperty('isAccessible') || actions[key].hasOwnProperty('reloadAfterAction')) && key !== 'extras') {
72
+ if (actions[key].hasOwnProperty('isAccessible') && key !== 'extras') {
72
73
  actionObject[key] = actions[key];
73
74
  }
74
75
  else if (actions[key].isAllowed && key !== 'extras') {
@@ -79,6 +80,7 @@ class ActionsGenerator {
79
80
  else if (key === 'extras') {
80
81
  actionObject[key] = actions[key];
81
82
  }
83
+ actionObject[key].reloadAfterAction = (_a = actions[key]) === null || _a === void 0 ? void 0 : _a.reloadAfterAction;
82
84
  }
83
85
  return actionObject;
84
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin",
3
- "version": "1.22.7",
3
+ "version": "1.22.8",
4
4
  "description": "",
5
5
  "main": "lib/Dashboard.js",
6
6
  "types": "lib/Dashbord.d.ts",