Skip to content

Commit 27a4dd2

Browse files
committed
feat!: add background jobs for transtations
BREAKING CHANGE: need to use background jobs plugin for translations
1 parent b29fccc commit 27a4dd2

3 files changed

Lines changed: 158 additions & 102 deletions

File tree

custom/BulkActionButton.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,9 @@
116116
},
117117
silentError: true,
118118
});
119-
adminforth.list.refresh();
120119
props.clearCheckboxes();
121120
if (res.ok) {
122-
adminforth.alert({ message: `${res.successMessage}. ${res.failedToTranslate.length > 0 ? `${t('Failed to translate')}: ${res.failedToTranslate.length}` : ''}`, variant: 'success' });
121+
adminforth.alert({ message: `Running translation job`, variant: 'success' });
123122
} else {
124123
adminforth.alert({ message: res.errorMessage || t('Failed to translate selected items. Please, try again.'), variant: 'danger' });
125124
}

custom/JobViewComponent.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<template>
2+
3+
4+
5+
</template>
6+
7+
8+
9+
<script setup lang="ts">
10+
11+
12+
</script>

0 commit comments

Comments
 (0)