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);
114114const openDialog = async () => {
115115 confirmDialog .value .open ();
116116 await getRecords ();
117- if (props .meta .isFieldsForAnalizeFromImages || props . meta . isImageGeneration ) {
117+ if (props .meta .isAttachFiles ) {
118118 await getImages ();
119119 }
120120 tableHeaders .value = generateTableHeaders (props .meta .outputFields );
121121 const result = generateTableColumns ();
122122 tableColumns .value = result .tableData ;
123123 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 );
125125 setSelected ();
126126 for (let i = 0 ; i < selected .value ?.length ; i ++ ) {
127127 openGenerationCarousel .value [i ] = props .meta .outputImageFields ?.reduce ((acc ,key ) => {
@@ -189,7 +189,7 @@ function generateTableHeaders(outputFields) {
189189
190190 headers .push ({ label: ' Checkboxes' , fieldName: ' checkboxes' });
191191 headers .push ({ label: ' Field name' , fieldName: ' label' });
192- if (props .meta .isFieldsForAnalizeFromImages ) {
192+ if (props .meta .isAttachFiles ) {
193193 headers .push ({ label: ' Source Images' , fieldName: ' images' });
194194 }
195195 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 {
180180 outputImagesPluginInstanceIds : outputImagesPluginInstanceIds ,
181181 isFieldsForAnalizeFromImages : this . options . fillFieldsFromImages ? Object . keys ( this . options . fillFieldsFromImages ) . length > 0 : false ,
182182 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 ,
184185 }
185186 }
186187
You can’t perform that action at this time.
0 commit comments