File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -114,14 +114,14 @@ const checkedCount = ref(0);
114
114
const openDialog = async () => {
115
115
confirmDialog .value .open ();
116
116
await getRecords ();
117
- if (props .meta .isFieldsForAnalizeFromImages || props . meta . isImageGeneration ) {
117
+ if (props .meta .isAttachFiles ) {
118
118
await getImages ();
119
119
}
120
120
tableHeaders .value = generateTableHeaders (props .meta .outputFields );
121
121
const result = generateTableColumns ();
122
122
tableColumns .value = result .tableData ;
123
123
tableColumnsIndexes .value = result .indexes ;
124
- customFieldNames .value = tableHeaders .value .slice (props .meta .isFieldsForAnalizeFromImages ? 3 : 2 ).map (h => h .fieldName );
124
+ customFieldNames .value = tableHeaders .value .slice (( props .meta .isAttachFiles ) ? 3 : 2 ).map (h => h .fieldName );
125
125
setSelected ();
126
126
for (let i = 0 ; i < selected .value ?.length ; i ++ ) {
127
127
openGenerationCarousel .value [i ] = props .meta .outputImageFields ?.reduce ((acc ,key ) => {
@@ -189,7 +189,7 @@ function generateTableHeaders(outputFields) {
189
189
190
190
headers .push ({ label: ' Checkboxes' , fieldName: ' checkboxes' });
191
191
headers .push ({ label: ' Field name' , fieldName: ' label' });
192
- if (props .meta .isFieldsForAnalizeFromImages ) {
192
+ if (props .meta .isAttachFiles ) {
193
193
headers .push ({ label: ' Source Images' , fieldName: ' images' });
194
194
}
195
195
for (const key in outputFields ) {
Original file line number Diff line number Diff line change @@ -180,7 +180,8 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
180
180
outputImagesPluginInstanceIds : outputImagesPluginInstanceIds ,
181
181
isFieldsForAnalizeFromImages : this . options . fillFieldsFromImages ? Object . keys ( this . options . fillFieldsFromImages ) . length > 0 : false ,
182
182
isFieldsForAnalizePlain : this . options . fillPlainFields ? Object . keys ( this . options . fillPlainFields ) . length > 0 : false ,
183
- isImageGeneration : this . options . generateImages ? Object . keys ( this . options . generateImages ) . length > 0 : false
183
+ isImageGeneration : this . options . generateImages ? Object . keys ( this . options . generateImages ) . length > 0 : false ,
184
+ isAttachFiles : this . options . attachFiles ? true : false ,
184
185
}
185
186
}
186
187
You can’t perform that action at this time.
0 commit comments