File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353 <Button
5454 class="w-full md:w-64 "
5555 @click =" saveData "
56- :disabled =" isLoading || checkedCount < 1 || isCriticalError "
56+ :disabled =" isLoading || checkedCount < 1 || isCriticalError || isFetchingRecords "
5757 :loader =" isLoading "
5858 >
5959 {{ checkedCount > 1 ? 'Save fields' : 'Save field' }}
@@ -105,6 +105,7 @@ const isAiResponseReceivedImage = ref([]);
105105const primaryKey = props .meta .primaryKey ;
106106const openGenerationCarousel = ref ([]);
107107const isLoading = ref (false );
108+ const isFetchingRecords = ref (false );
108109const isError = ref (false );
109110const isCriticalError = ref (false );
110111const isImageGenerationError = ref (false );
@@ -129,7 +130,7 @@ const openDialog = async () => {
129130 return acc ;
130131 },{[primaryKey ]: records .value [i ][primaryKey ]} as Record <string , boolean >);
131132 }
132- isLoading .value = true ;
133+ isFetchingRecords .value = true ;
133134 const tasks = [];
134135 if (props .meta .isFieldsForAnalizeFromImages ) {
135136 tasks .push (runAiAction ({
@@ -158,7 +159,7 @@ const openDialog = async () => {
158159 fillCarouselSaveImages ();
159160 }
160161
161- isLoading .value = false ;
162+ isFetchingRecords .value = false ;
162163}
163164
164165watch (selected , (val ) => {
You can’t perform that action at this time.
0 commit comments