@adminforth/i18n 2.0.7 → 2.0.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.
- package/build.log +1 -1
- package/dist/index.js +3 -1
- package/index.ts +3 -2
- package/package.json +1 -1
package/build.log
CHANGED
package/dist/index.js
CHANGED
|
@@ -419,7 +419,9 @@ export default class I18nPlugin extends AdminForthPlugin {
|
|
|
419
419
|
if (!resourceConfig.options.pageInjections.list.threeDotsDropdownItems) {
|
|
420
420
|
resourceConfig.options.pageInjections.list.threeDotsDropdownItems = [];
|
|
421
421
|
}
|
|
422
|
-
|
|
422
|
+
if (this.options.completeAdapter) {
|
|
423
|
+
resourceConfig.options.pageInjections.list.threeDotsDropdownItems.push(pageInjection);
|
|
424
|
+
}
|
|
423
425
|
// if there is menu item with resourceId, add .badge function showing number of untranslated strings
|
|
424
426
|
const addBadgeCountToMenuItem = (menuItem) => {
|
|
425
427
|
this.menuItemWithBadgeId = menuItem.itemId;
|
package/index.ts
CHANGED
|
@@ -484,8 +484,9 @@ export default class I18nPlugin extends AdminForthPlugin {
|
|
|
484
484
|
if (!resourceConfig.options.pageInjections.list.threeDotsDropdownItems) {
|
|
485
485
|
resourceConfig.options.pageInjections.list.threeDotsDropdownItems = [];
|
|
486
486
|
}
|
|
487
|
-
|
|
488
|
-
|
|
487
|
+
if (this.options.completeAdapter) {
|
|
488
|
+
(resourceConfig.options.pageInjections.list.threeDotsDropdownItems as AdminForthComponentDeclaration[]).push(pageInjection);
|
|
489
|
+
}
|
|
489
490
|
|
|
490
491
|
// if there is menu item with resourceId, add .badge function showing number of untranslated strings
|
|
491
492
|
const addBadgeCountToMenuItem = (menuItem: AdminForthConfigMenuItem) => {
|