diff --git a/custom/VisionAction.vue b/custom/VisionAction.vue
index 8a67874..6562079 100644
--- a/custom/VisionAction.vue
+++ b/custom/VisionAction.vue
@@ -54,9 +54,10 @@
@@ -113,7 +114,7 @@
{
message: t('Are you sure you want to close without saving?'),
yes: t('Yes'),
no: t('Cancel'),
+ dangerous: true,
});
if (confirmed) {
diff --git a/custom/VisionTable.vue b/custom/VisionTable.vue
index e459280..47bb81f 100644
--- a/custom/VisionTable.vue
+++ b/custom/VisionTable.vue
@@ -142,14 +142,6 @@
@click="() => zoomImage(item.data?.[n])"
style="image-rendering: auto;"
/>
- { item.openImageCompare[n] = true }"
- >
- {{ $t('old image') }}
-
@@ -342,6 +334,8 @@ function regenerateRecord(recordId: any) {
}
function canRegenerate(item: any): boolean {
+ if (item.status === 'processing') return false;
+ if (item.status === 'completed' || item.status === 'failed') return true;
if (props.overwriteExistingValues) return true;
for (const n of props.customFieldNames) {
const val = item.data?.[n];