File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 53
53
<Button
54
54
class =" w-full md:w-64"
55
55
@click =" saveData"
56
- :disabled =" isLoading || checkedCount < 1 || isCriticalError"
56
+ :disabled =" isLoading || checkedCount < 1 || isCriticalError || isFetchingRecords "
57
57
:loader =" isLoading"
58
58
>
59
59
{{ checkedCount > 1 ? 'Save fields' : 'Save field' }}
@@ -105,6 +105,7 @@ const isAiResponseReceivedImage = ref([]);
105
105
const primaryKey = props .meta .primaryKey ;
106
106
const openGenerationCarousel = ref ([]);
107
107
const isLoading = ref (false );
108
+ const isFetchingRecords = ref (false );
108
109
const isError = ref (false );
109
110
const isCriticalError = ref (false );
110
111
const isImageGenerationError = ref (false );
@@ -129,7 +130,7 @@ const openDialog = async () => {
129
130
return acc ;
130
131
},{[primaryKey ]: records .value [i ][primaryKey ]} as Record <string , boolean >);
131
132
}
132
- isLoading .value = true ;
133
+ isFetchingRecords .value = true ;
133
134
const tasks = [];
134
135
if (props .meta .isFieldsForAnalizeFromImages ) {
135
136
tasks .push (runAiAction ({
@@ -158,7 +159,7 @@ const openDialog = async () => {
158
159
fillCarouselSaveImages ();
159
160
}
160
161
161
- isLoading .value = false ;
162
+ isFetchingRecords .value = false ;
162
163
}
163
164
164
165
watch (selected , (val ) => {
You can’t perform that action at this time.
0 commit comments