adminforth 1.2.93 → 1.2.95
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/dist/modules/restApi.js +5 -3
- package/modules/restApi.ts +5 -2
- package/package.json +1 -1
package/dist/modules/restApi.js
CHANGED
|
@@ -159,10 +159,12 @@ export default class AdminForthRestAPI {
|
|
|
159
159
|
};
|
|
160
160
|
function processMenuItem(menuItem) {
|
|
161
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
console.log('super hueta');
|
|
162
163
|
if (menuItem.badge) {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
console.log('hueta');
|
|
165
|
+
// if (typeof menuItem.badge !== 'string') {
|
|
166
|
+
menuItem.badge = yield menuItem.badge(adminUser);
|
|
167
|
+
// }
|
|
166
168
|
}
|
|
167
169
|
});
|
|
168
170
|
}
|
package/modules/restApi.ts
CHANGED
|
@@ -188,10 +188,13 @@ export default class AdminForthRestAPI {
|
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
async function processMenuItem(menuItem) {
|
|
191
|
+
console.log('super hueta')
|
|
192
|
+
|
|
191
193
|
if (menuItem.badge) {
|
|
192
|
-
|
|
194
|
+
console.log('hueta')
|
|
195
|
+
// if (typeof menuItem.badge !== 'string') {
|
|
193
196
|
menuItem.badge = await menuItem.badge(adminUser);
|
|
194
|
-
}
|
|
197
|
+
// }
|
|
195
198
|
}
|
|
196
199
|
}
|
|
197
200
|
let newMenu = []
|