mcgilman commented on code in PR #8386:
URL: https://github.com/apache/nifi/pull/8386#discussion_r1488532914


##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/provenance/state/provenance-event-listing/provenance-event-listing.effects.ts:
##########
@@ -311,18 +321,31 @@ export class ProvenanceEventListingEffects {
                             dialogReference.componentInstance.replay
                                 .pipe(takeUntil(dialogReference.afterClosed()))
                                 .subscribe(() => {
-                                    
this.provenanceService.replay(request.id).subscribe(() => {
-                                        this.store.dispatch(
-                                            
ProvenanceEventListingActions.showOkDialog({
-                                                title: 'Provenance',
-                                                message: 'Successfully 
submitted replay request.'
-                                            })
-                                        );
+                                    
this.provenanceService.replay(request.id).subscribe({
+                                        next: () => {
+                                            dialogReference.close();
+
+                                            this.store.dispatch(
+                                                
ProvenanceEventListingActions.showOkDialog({
+                                                    title: 'Provenance',
+                                                    message: 'Successfully 
submitted replay request.'
+                                                })
+                                            );
+                                        },
+                                        error: (errorResponse: 
HttpErrorResponse) => {
+                                            this.store.dispatch(
+                                                ErrorActions.snackBarError({ 
error: errorResponse.error })
+                                            );

Review Comment:
   I will also update to close the dialog so it error is shown more clearly.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to