Close export dialog autmatically for support form

Summary: This diff adds the support to close the dialog automatically for the support form.

Reviewed By: passy

Differential Revision: D17899862

fbshipit-source-id: 9d9cd14556a4cebe60f8cc1d082be3e439998e9c
This commit is contained in:
Pritesh Nandgaonkar
2019-10-14 08:05:55 -07:00
committed by Facebook Github Bot
parent 4a8a4aabb6
commit de17f3905b
5 changed files with 63 additions and 12 deletions

View File

@@ -196,7 +196,11 @@ function getTemplate(
return;
}
store.dispatch(
setSelectPluginsToExportActiveSheet({type: 'file', file: file}),
setSelectPluginsToExportActiveSheet({
type: 'file',
file: file,
closeOnFinish: false,
}),
);
},
);
@@ -208,7 +212,12 @@ function getTemplate(
label: 'Sharable Link',
accelerator: 'CommandOrControl+Shift+E',
click: function() {
store.dispatch(setSelectPluginsToExportActiveSheet({type: 'link'}));
store.dispatch(
setSelectPluginsToExportActiveSheet({
type: 'link',
closeOnFinish: false,
}),
);
},
});
}