pollination-react-io 1.96.0 → 1.96.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.
package/build/index.js CHANGED
@@ -56516,7 +56516,9 @@ var StudyCard = function (_a) {
56516
56516
  } },
56517
56517
  React__default["default"].createElement(Trash$1, { style: { display: 'inline', margin: '0 5px 0 0' } }),
56518
56518
  " Delete"),
56519
- React__default["default"].createElement(Button, { style: (width > 600) ? { display: 'inline' } : { display: 'inline', float: 'left' }, disabled: !study || (study.status.runs_pending < 1 && study.status.runs_running < 1), onClick: function (e) {
56519
+ React__default["default"].createElement(Button, { style: (width > 600) ?
56520
+ { display: 'inline', margin: '0 10px 0 0' }
56521
+ : { display: 'inline', float: 'left', margin: '0 10px 0 0' }, disabled: !study || (study.status.runs_pending < 1 && study.status.runs_running < 1), onClick: function (e) {
56520
56522
  e.stopPropagation();
56521
56523
  if (!study)
56522
56524
  return;
@@ -56526,7 +56528,7 @@ var StudyCard = function (_a) {
56526
56528
  } },
56527
56529
  React__default["default"].createElement(XOctagon$1, { style: { display: 'inline', margin: '0 5px 0 0' } }),
56528
56530
  " Cancel"),
56529
- React__default["default"].createElement(Button, { style: (width > 600) ? { display: 'inline' } : { display: 'inline', float: 'left' }, disabled: !study || (study.status.runs_cancelled < 1 || study.status.runs_failed < 1), loading: retryLoading, onClick: function (e) {
56531
+ React__default["default"].createElement(Button, { style: (width > 600) ? { display: 'inline' } : { display: 'inline', float: 'left' }, disabled: !study || (study.status.runs_cancelled == 0 || study.status.runs_failed == 0), loading: retryLoading, onClick: function (e) {
56530
56532
  setRetryLoading(true);
56531
56533
  e.stopPropagation();
56532
56534
  if (!study)