@adminforth/i18n 2.0.7 → 2.0.9
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/custom/BulkActionButton.vue +3 -2
- package/dist/custom/BulkActionButton.vue +3 -2
- package/dist/index.js +3 -1
- package/index.ts +3 -2
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -20,5 +20,5 @@ custom/package.json
|
|
|
20
20
|
custom/pnpm-lock.yaml
|
|
21
21
|
custom/tsconfig.json
|
|
22
22
|
|
|
23
|
-
sent 44,
|
|
24
|
-
total size is 43,
|
|
23
|
+
sent 44,841 bytes received 305 bytes 90,292.00 bytes/sec
|
|
24
|
+
total size is 43,678 speedup is 0.97
|
|
@@ -63,8 +63,10 @@
|
|
|
63
63
|
import 'flag-icon-css/css/flag-icons.min.css';
|
|
64
64
|
import websocket from '@/websocket';
|
|
65
65
|
import { useFiltersStore } from '@/stores/filters';
|
|
66
|
+
import { useJobInfoStore } from '@/custom/plugins/BackgroundJobsPlugin/useBackgroundJobPlugin.ts';
|
|
66
67
|
|
|
67
68
|
const filtersStore = useFiltersStore();
|
|
69
|
+
const jobInfoStore = useJobInfoStore();
|
|
68
70
|
|
|
69
71
|
const { t } = useI18n();
|
|
70
72
|
const adminforth = useAdminforth();
|
|
@@ -138,8 +140,7 @@
|
|
|
138
140
|
const jobId = res.jobId;
|
|
139
141
|
if (jobId) {
|
|
140
142
|
console.log('Opening job info popup for jobId:', jobId);
|
|
141
|
-
|
|
142
|
-
window.OpenJobInfoPopup(jobId);
|
|
143
|
+
jobInfoStore.openJobInfoPopup(jobId);
|
|
143
144
|
}
|
|
144
145
|
} else {
|
|
145
146
|
adminforth.alert({ message: res.errorMessage || t('Failed to translate selected items. Please, try again.'), variant: 'danger' });
|
|
@@ -63,8 +63,10 @@
|
|
|
63
63
|
import 'flag-icon-css/css/flag-icons.min.css';
|
|
64
64
|
import websocket from '@/websocket';
|
|
65
65
|
import { useFiltersStore } from '@/stores/filters';
|
|
66
|
+
import { useJobInfoStore } from '@/custom/plugins/BackgroundJobsPlugin/useBackgroundJobPlugin.ts';
|
|
66
67
|
|
|
67
68
|
const filtersStore = useFiltersStore();
|
|
69
|
+
const jobInfoStore = useJobInfoStore();
|
|
68
70
|
|
|
69
71
|
const { t } = useI18n();
|
|
70
72
|
const adminforth = useAdminforth();
|
|
@@ -138,8 +140,7 @@
|
|
|
138
140
|
const jobId = res.jobId;
|
|
139
141
|
if (jobId) {
|
|
140
142
|
console.log('Opening job info popup for jobId:', jobId);
|
|
141
|
-
|
|
142
|
-
window.OpenJobInfoPopup(jobId);
|
|
143
|
+
jobInfoStore.openJobInfoPopup(jobId);
|
|
143
144
|
}
|
|
144
145
|
} else {
|
|
145
146
|
adminforth.alert({ message: res.errorMessage || t('Failed to translate selected items. Please, try again.'), variant: 'danger' });
|
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) => {
|