fix: add loading to delete event dialog (#11102)
* add loading to delete event dialog * chore: use mutation isLoading Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in> --------- Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in> Co-authored-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>pull/11085/head^2
parent
b0164990c0
commit
a7d8f0c84e
|
@ -662,6 +662,7 @@ export const EventTypeList = ({ group, groupIndex, readOnly, types }: EventTypeL
|
||||||
title={t(`delete${isManagedEventPrefix()}_event_type`)}
|
title={t(`delete${isManagedEventPrefix()}_event_type`)}
|
||||||
confirmBtnText={t(`confirm_delete_event_type`)}
|
confirmBtnText={t(`confirm_delete_event_type`)}
|
||||||
loadingText={t(`confirm_delete_event_type`)}
|
loadingText={t(`confirm_delete_event_type`)}
|
||||||
|
isLoading={deleteMutation.isLoading}
|
||||||
onConfirm={(e) => {
|
onConfirm={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
deleteEventTypeHandler(deleteDialogTypeId);
|
deleteEventTypeHandler(deleteDialogTypeId);
|
||||||
|
|
Loading…
Reference in New Issue