[ARVADOS-WORKBENCH2] updated: 1.2.0-868-g9da0da6

Git user git at public.curoverse.com
Wed Nov 14 05:44:26 EST 2018


Summary of changes:
 .../process-remove-dialog/process-remove-dialog.tsx     | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

       via  9da0da6012b6c4b80db90fdd5862d37ad2113aa4 (commit)
      from  6c40105be37e95350ad0537c38401d58e6f84e2c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 9da0da6012b6c4b80db90fdd5862d37ad2113aa4
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Wed Nov 14 11:44:13 2018 +0100

    cr changes
    
    Feature #14461
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

diff --git a/src/views-components/process-remove-dialog/process-remove-dialog.tsx b/src/views-components/process-remove-dialog/process-remove-dialog.tsx
index 4f6f907..0994c28 100644
--- a/src/views-components/process-remove-dialog/process-remove-dialog.tsx
+++ b/src/views-components/process-remove-dialog/process-remove-dialog.tsx
@@ -2,19 +2,24 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { Dispatch } from "redux";
+import { Dispatch, compose } from 'redux';
 import { connect } from "react-redux";
 import { ConfirmationDialog } from "~/components/confirmation-dialog/confirmation-dialog";
 import { withDialog, WithDialogProps } from "~/store/dialog/with-dialog";
-import { removeProcessPermanently, REMOVE_PROCESS_DIALOG } from "~/store/processes/processes-actions";
+import { removeProcessPermanently, REMOVE_PROCESS_DIALOG } from '~/store/processes/processes-actions';
 
- const mapDispatchToProps = (dispatch: Dispatch, props: WithDialogProps<any>) => ({
+const mapStateToProps = (props: WithDialogProps<string>) => ({
+    ...props,
+});
+
+const mapDispatchToProps = (dispatch: Dispatch, props: WithDialogProps<any>) => ({
     onConfirm: () => {
         props.closeDialog();
         dispatch<any>(removeProcessPermanently(props.data.uuid));
     }
 });
 
- export const [RemoveProcessDialog] = [ConfirmationDialog]
-    .map(connect(null, mapDispatchToProps) as any)
-    .map(withDialog(REMOVE_PROCESS_DIALOG)); 
\ No newline at end of file
+export const RemoveProcessDialog = compose(
+    withDialog(REMOVE_PROCESS_DIALOG),
+    connect(mapStateToProps, mapDispatchToProps)
+)(ConfirmationDialog);

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list