Skip to content

Commit 615333e

Browse files
authored
Merge pull request #598 from devforth/feature/AdminForth/1560/add-some-description-or-someth
fix: add import translation
2 parents f27d73b + 5396980 commit 615333e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

adminforth/spa/src/utils/listUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { callAdminForthApi } from '@/utils';
33
import { type AdminForthResourceFrontend } from '../types/Common';
44
import { useAdminforth } from '@/adminforth';
55
import { showErrorTost } from '@/composables/useFrontendApi'
6+
import { useI18n } from 'vue-i18n';
67

78
let getResourceDataLastAbortController: AbortController | null = null;
89
export async function getList(resource: AdminForthResourceFrontend, isPageLoaded: boolean, page: number | null , pageSize: number, sort: any, checkboxes:{ value: any[] }, filters: any = [] ) {
@@ -57,6 +58,7 @@ export async function startBulkAction(actionId: string, resource: AdminForthReso
5758
bulkActionLoadingStates: {value: Record<string, boolean>}, getListInner: () => Promise<any>) {
5859
const action = resource?.options?.bulkActions?.find(a => a.id === actionId);
5960
const { confirm, alert } = useAdminforth();
61+
const { t } = useI18n();
6062

6163
if (action?.confirm) {
6264
const confirmed = await confirm({

0 commit comments

Comments
 (0)