Roll back to basic view after closing the sharing dialog
[arvados-workbench2.git] / src / views-components / sharing-dialog / sharing-dialog.tsx
index 06514d4913c8a458c62dfb42018042683b8108c9..63ee19a74bd50d3cedb93056d45cd0ab49db4082 100644 (file)
@@ -24,6 +24,7 @@ const mapStateToProps = (_: RootState, { advancedViewOpen, ...props }: WithDialo
 const mapDispatchToProps = (_: Dispatch, { toggleAdvancedView, ...props }: WithDialogProps<string> & AdvancedViewSwitchInjectedProps): SharingDialogActionProps => ({
     ...props,
     onClose: props.closeDialog,
+    onExited: toggleAdvancedView,
     onSave: () => { console.log('save'); },
     onAdvanced: toggleAdvancedView,
 });