2020 {
2121 label: checkedCount > 1 ? t (' Save fields' ) : t (' Save field' ),
2222 options: {
23- disabled: isLoading || checkedCount < 1 || isCriticalError || isFetchingRecords || isProcessingAny ,
23+ disabled: isLoading || checkedCount < 1 || isFetchingRecords || isProcessingAny ,
2424 loader: isLoading , class: ' w-fit'
2525 },
2626 onclick : async (dialog ) => { await saveData (); dialog .hide (); }
@@ -208,7 +208,6 @@ const primaryKey = props.meta.primaryKey;
208208const isLoading = ref (false );
209209const isFetchingRecords = ref (false );
210210const isError = ref (false );
211- const isCriticalError = ref (false );
212211const errorMessage = ref (' ' );
213212const isDialogOpen = ref (false );
214213const isImageHasPreviewUrl = ref <Record <string , boolean >>({});
@@ -218,7 +217,10 @@ const isDataSaved = ref(false);
218217const overwriteExistingValues = ref <boolean >(false );
219218
220219const checkedCount = computed (() => recordIds .value .length - uncheckedRecordIds .size );
221- const isProcessingAny = computed (() => Array .from (recordsById .values ()).some (record => record .status === ' processing' ));
220+ const isProcessingAny = computed (() => {
221+ recordsVersion .value ;
222+ return Array .from (recordsById .values ()).some (record => record .status === ' processing' );
223+ });
222224
223225const tableHeaders = computed (() => generateTableHeaders (props .meta .outputFields ));
224226const customFieldNames = computed (() => tableHeaders .value .slice ((props .meta .isAttachFiles ) ? 3 : 2 ).map (h => h .fieldName ));
@@ -299,7 +301,6 @@ const closeDialog = () => {
299301 window .removeEventListener (' beforeunload' , beforeUnloadHandler );
300302 resetGlobalState ();
301303 isError .value = false ;
302- isCriticalError .value = false ;
303304 errorMessage .value = ' ' ;
304305 isDialogOpen .value = false ;
305306 popupMode .value = ' confirmation' ;
0 commit comments