Skip to content

Commit 27d57db

Browse files
committed
fix: fix blinking confirmation window if "askConfirmationBeforeGenerating" is false
1 parent 5a31f4f commit 27d57db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

custom/VisionAction.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ const popupMode = ref<'generation' | 'confirmation' | 'settings'>('confirmation'
181181
const generationPrompts = ref<any>({});
182182
183183
const openDialog = async () => {
184+
if (props.meta.askConfirmationBeforeGenerating) {
185+
popupMode.value = 'confirmation';
186+
} else {
187+
popupMode.value = 'generation';
188+
}
184189
isDialogOpen.value = true;
185190
confirmDialog.value.open();
186191
isFetchingRecords.value = true;

0 commit comments

Comments
 (0)