|
140 | 140 | <div class="flex items-center justify-between mb-2 w-full"> |
141 | 141 | <div class="flex items-center justify-center gap-2"> |
142 | 142 | <IconShieldSolid class="w-6 h-6 text-lightPrimary dark:text-darkPrimary" /> |
143 | | - <p class="sm:text-base text-sm">{{ t('Do not overwrite existing values') }}</p> |
| 143 | + <p class="sm:text-base text-sm">{{ t('Overwrite existing values') }}</p> |
144 | 144 | <Tooltip> |
145 | 145 | <IconInfoCircleSolid class="w-5 h-5 me-2 text-lightPrimary dark:text-darkPrimary"/> |
146 | 146 | <template #tooltip> |
147 | | - <p class="max-w-64">{{ t('When enabled, the AI will skip generating content for fields that already have data. This helps to preserve existing information and avoid overwriting valuable content.') }}</p> |
| 147 | + <p class="max-w-64">{{ t('When enabled, the AI will overwrite content for fields that already have data. When off - this helps to preserve existing information and avoid overwriting valuable content.') }}</p> |
148 | 148 | </template> |
149 | 149 | </Tooltip> |
150 | 150 | </div> |
151 | 151 | <Toggle |
152 | | - v-model="skipFilledFieldsForGeneration" |
| 152 | + v-model="overwriteExistingValues" |
153 | 153 | /> |
154 | 154 | </div> |
155 | | - <div :class="skipFilledFieldsForGeneration === false ? 'opacity-100' : 'opacity-0'" class="flex items-center text-yellow-800 bg-yellow-100 p-2 rounded-md border border-yellow-300"> |
| 155 | + <div :class="overwriteExistingValues === true ? 'opacity-100' : 'opacity-0'" class="flex items-center text-yellow-800 bg-yellow-100 p-2 rounded-md border border-yellow-300"> |
156 | 156 | <IconExclamationTriangle class="w-6 h-6 me-2"/> |
157 | 157 | <p class="sm:text-base text-sm">{{ t('Warning: Existing values will be overwritten.') }}</p> |
158 | 158 | </div> |
@@ -236,7 +236,7 @@ const generationPrompts = ref<any>({}); |
236 | 236 | const isDataSaved = ref(false); |
237 | 237 |
|
238 | 238 | const regeneratingFieldsStatus = ref<Record<string, Record<string, boolean>>>({}); |
239 | | -const skipFilledFieldsForGeneration = ref<boolean>(true); |
| 239 | +const overwriteExistingValues = ref<boolean>(false); |
240 | 240 |
|
241 | 241 | const openDialog = async () => { |
242 | 242 | window.addEventListener('beforeunload', beforeUnloadHandler); |
@@ -668,7 +668,7 @@ async function runAiAction({ |
668 | 668 | actionType: actionType, |
669 | 669 | recordId: checkbox, |
670 | 670 | ...(customPrompt !== undefined ? { customPrompt: JSON.stringify(customPrompt) } : {}), |
671 | | - filterFilledFields: skipFilledFieldsForGeneration.value, |
| 671 | + filterFilledFields: !overwriteExistingValues.value, |
672 | 672 | }, |
673 | 673 | silentError: true, |
674 | 674 | }); |
|
0 commit comments