18559: Add tri-state account status indicator and associated context menu actions
[arvados-workbench2.git] / src / views-components / user-dialog / deactivate-dialog.tsx
index 6babf367eb6cc7c142d38f3a46a5b5dc85cfeb87..8aefa9299dc7cf98a456f3ab4cb32d271325e8fa 100644 (file)
@@ -6,12 +6,12 @@ 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 { unsetup, DEACTIVATE_DIALOG } from 'store/user-profile/user-profile-actions';
+import { deactivate, DEACTIVATE_DIALOG } from 'store/user-profile/user-profile-actions';
 
 const mapDispatchToProps = (dispatch: Dispatch, props: WithDialogProps<any>) => ({
     onConfirm: () => {
         props.closeDialog();
-        dispatch<any>(unsetup(props.data.uuid));
+        dispatch<any>(deactivate(props.data.uuid));
     }
 });