Skip to content

Commit 3ad8dc1

Browse files
committed
fix: use background jobs global api instead of window.api....
1 parent 9a26290 commit 3ad8dc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

custom/BulkActionButton.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@
6363
import 'flag-icon-css/css/flag-icons.min.css';
6464
import websocket from '@/websocket';
6565
import { useFiltersStore } from '@/stores/filters';
66+
import { useJobInfoStore } from '@/custom/plugins/BackgroundJobsPlugin/useBackgroundJobPlugin.ts';
6667
6768
const filtersStore = useFiltersStore();
69+
const jobInfoStore = useJobInfoStore();
6870
6971
const { t } = useI18n();
7072
const adminforth = useAdminforth();
@@ -138,8 +140,7 @@
138140
const jobId = res.jobId;
139141
if (jobId) {
140142
console.log('Opening job info popup for jobId:', jobId);
141-
//@ts-ignore
142-
window.OpenJobInfoPopup(jobId);
143+
jobInfoStore.openJobInfoPopup(jobId);
143144
}
144145
} else {
145146
adminforth.alert({ message: res.errorMessage || t('Failed to translate selected items. Please, try again.'), variant: 'danger' });

0 commit comments

Comments
 (0)