pollination-react-io 1.34.0 → 1.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44578,17 +44578,13 @@ var RecipeInputsForm = function (_a) {
44578
44578
  var _b, _c;
44579
44579
  var recipe = _a.recipe, controlledValues = _a.controlledValues, onSubmit = _a.onSubmit, projectName = _a.projectName, projectOwner = _a.projectOwner, client = _a.client;
44580
44580
  var _d = useState(false), loading = _d[0], setLoading = _d[1];
44581
- var _e = useState(false), showFileView = _e[0], setShowFileView = _e[1];
44582
- var _f = useState(__assign(__assign({}, _defaultConfig), { cloudProjectName: projectName, cloudProjectOwner: projectOwner })), localConfig = _f[0], setLocalConfig = _f[1];
44583
- useEffect(function () {
44584
- setShowFileView(function (state) { return !state; });
44585
- }, [localConfig]);
44581
+ var _e = useState(__assign(__assign({}, _defaultConfig), { cloudProjectName: projectName, cloudProjectOwner: projectOwner })), localConfig = _e[0], setLocalConfig = _e[1];
44586
44582
  var schema = generateSchema(recipe.inputs);
44587
44583
  var host = getHost();
44588
- var _g = useForm({
44584
+ var _f = useForm({
44589
44585
  resolver: Oe(schema),
44590
44586
  mode: 'all',
44591
- }), control = _g.control, register = _g.register, handleSubmit = _g.handleSubmit, reset = _g.reset, resetField = _g.resetField, formState = _g.formState, _h = _g.formState, errors = _h.errors, isValid = _h.isValid, isSubmitSuccessful = _h.isSubmitSuccessful;
44587
+ }), control = _f.control, register = _f.register, handleSubmit = _f.handleSubmit, reset = _f.reset, resetField = _f.resetField, formState = _f.formState, _g = _f.formState, errors = _g.errors, isValid = _g.isValid, isSubmitSuccessful = _g.isSubmitSuccessful;
44592
44588
  var _onSubmit = function (_data) {
44593
44589
  var data = __assign({}, _data);
44594
44590
  // strip study name
@@ -44650,7 +44646,7 @@ var RecipeInputsForm = function (_a) {
44650
44646
  } },
44651
44647
  React__default.createElement(Tab, { key: 'required-tab' }, "Required"),
44652
44648
  React__default.createElement(Tab, { key: 'optional-tab' }, "Optional"),
44653
- showFileView && React__default.createElement(Tab, { key: 'local-results' }, "Results")),
44649
+ host !== 'web' && localConfig.isLocalJob && React__default.createElement(Tab, { key: 'local-results' }, "Results")),
44654
44650
  React__default.createElement("form", { id: recipe.metadata.name, onSubmit: handleSubmit(_onSubmit), style: {
44655
44651
  display: 'flex',
44656
44652
  flexDirection: 'column',
@@ -44709,7 +44705,7 @@ var RecipeInputsForm = function (_a) {
44709
44705
  })()));
44710
44706
  })));
44711
44707
  }),
44712
- showFileView && React__default.createElement(TabPanel, { key: 'local-results' },
44708
+ host !== 'web' && localConfig.isLocalJob && React__default.createElement(TabPanel, { key: 'local-results' },
44713
44709
  React__default.createElement(FilePreview, { projectOwner: projectOwner, projectName: projectName, enableFilePicker: true, client: client, inputProps: {
44714
44710
  accept: '.zip, .vsf'
44715
44711
  } }))),