@@ -20,6 +20,11 @@ const failureStatus = computed(() => state.value.data.failure_status);
2020const isDisabled = computed (() => failureStatus .value .retried || failureStatus .value .archived || failureStatus .value .resolved );
2121const isVisible = computed (() => edit_and_retry_config .value .enabled && state .value .data .status !== MessageStatus .Successful && state .value .data .status !== MessageStatus .ResolvedSuccessfully );
2222
23+ const handleIgnoreClose = async () => {
24+ isEditIgnoredDialogVisible .value = false ;
25+ await store .pollForNextUpdate (FailedMessageStatus .Resolved );
26+ };
27+
2328const handleConfirm = async () => {
2429 isConfirmDialogVisible .value = false ;
2530
@@ -28,8 +33,8 @@ const handleConfirm = async () => {
2833 } else {
2934 const message = ` Retrying the edited message ${state .value .data .id } ... ` ;
3035 useShowToast (TYPE .INFO , " Info" , message );
36+ await store .pollForNextUpdate (FailedMessageStatus .Resolved );
3137 }
32- await store .pollForNextUpdate (FailedMessageStatus .Resolved );
3338};
3439
3540async function openDialog() {
@@ -43,7 +48,7 @@ async function openDialog() {
4348 <button type =" button" class =" btn btn-default" aria-label =" Edit & retry" :disabled =" isDisabled" @click =" openDialog" ><FAIcon :icon =" faPencil" class =" icon" /> Edit & retry</button >
4449 <Teleport to =" #modalDisplay" >
4550 <EditRetryDialog v-if =" isConfirmDialogVisible" @cancel =" isConfirmDialogVisible = false" @confirm =" handleConfirm" ></EditRetryDialog >
46- <EditIgnoredDialog v-if =" isEditIgnoredDialogVisible" @close =" isEditIgnoredDialogVisible = false " ></EditIgnoredDialog >
51+ <EditIgnoredDialog v-if =" isEditIgnoredDialogVisible" @close =" handleIgnoreClose " ></EditIgnoredDialog >
4752 </Teleport >
4853 </template >
4954</template >
0 commit comments