@adminforth/i18n 2.0.8 → 2.0.10

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 CHANGED
@@ -20,5 +20,5 @@ custom/package.json
20
20
  custom/pnpm-lock.yaml
21
21
  custom/tsconfig.json
22
22
 
23
- sent 44,701 bytes received 305 bytes 90,012.00 bytes/sec
24
- total size is 43,554 speedup is 0.97
23
+ sent 44,846 bytes received 305 bytes 90,302.00 bytes/sec
24
+ total size is 43,683 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 { useBackgroundJobApi } from '@/custom/plugins/BackgroundJobsPlugin/useBackgroundJobApi.ts';
66
67
 
67
68
  const filtersStore = useFiltersStore();
69
+ const jobInfoStore = useBackgroundJobApi();
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
- //@ts-ignore
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 { useBackgroundJobApi } from '@/custom/plugins/BackgroundJobsPlugin/useBackgroundJobApi.ts';
66
67
 
67
68
  const filtersStore = useFiltersStore();
69
+ const jobInfoStore = useBackgroundJobApi();
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
- //@ts-ignore
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/i18n",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",