@adminforth/i18n 1.6.5 → 1.6.6
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/build.log +2 -2
- package/dist/index.js +2 -2
- package/index.ts +2 -2
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -17,5 +17,5 @@ custom/package-lock.json
|
|
|
17
17
|
custom/package.json
|
|
18
18
|
custom/tsconfig.json
|
|
19
19
|
|
|
20
|
-
sent 33,
|
|
21
|
-
total size is 32,230 speedup is 0.
|
|
20
|
+
sent 33,150 bytes received 248 bytes 22,265.33 bytes/sec
|
|
21
|
+
total size is 32,230 speedup is 0.97
|
package/dist/index.js
CHANGED
|
@@ -431,12 +431,12 @@ export default class I18nPlugin extends AdminForthPlugin {
|
|
|
431
431
|
menuItem.badgeTooltip = 'Untranslated count';
|
|
432
432
|
};
|
|
433
433
|
adminforth.config.menu.forEach((menuItem) => {
|
|
434
|
-
if (menuItem.resourceId === resourceConfig.resourceId) {
|
|
434
|
+
if (menuItem.resourceId === resourceConfig.resourceId && !menuItem.badge) {
|
|
435
435
|
addBadgeCountToMenuItem(menuItem);
|
|
436
436
|
}
|
|
437
437
|
if (menuItem.children) {
|
|
438
438
|
menuItem.children.forEach((child) => {
|
|
439
|
-
if (child.resourceId === resourceConfig.resourceId) {
|
|
439
|
+
if (child.resourceId === resourceConfig.resourceId && !child.badge) {
|
|
440
440
|
addBadgeCountToMenuItem(child);
|
|
441
441
|
}
|
|
442
442
|
});
|
package/index.ts
CHANGED
|
@@ -484,12 +484,12 @@ export default class I18nPlugin extends AdminForthPlugin {
|
|
|
484
484
|
menuItem.badgeTooltip = 'Untranslated count';
|
|
485
485
|
}
|
|
486
486
|
adminforth.config.menu.forEach((menuItem) => {
|
|
487
|
-
if (menuItem.resourceId === resourceConfig.resourceId) {
|
|
487
|
+
if (menuItem.resourceId === resourceConfig.resourceId && !menuItem.badge) {
|
|
488
488
|
addBadgeCountToMenuItem(menuItem);
|
|
489
489
|
}
|
|
490
490
|
if (menuItem.children) {
|
|
491
491
|
menuItem.children.forEach((child) => {
|
|
492
|
-
if (child.resourceId === resourceConfig.resourceId) {
|
|
492
|
+
if (child.resourceId === resourceConfig.resourceId && !child.badge) {
|
|
493
493
|
addBadgeCountToMenuItem(child);
|
|
494
494
|
}
|
|
495
495
|
});
|