pollination-react-io 1.92.6 → 1.92.8

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
@@ -56476,10 +56476,6 @@ var RunCard = function (_a) {
56476
56476
  return undefined;
56477
56477
  return dayjs_min().diff(dayjs_min(run.status.finished_at), 'day');
56478
56478
  }, [run]);
56479
- // Test for debug purposes
56480
- React.useEffect(function () {
56481
- console.log('Days since finished', daysSinceFinished);
56482
- }, [daysSinceFinished]);
56483
56479
  /**
56484
56480
  * Manage hover effect
56485
56481
  */
@@ -56731,7 +56727,9 @@ var RunCard = function (_a) {
56731
56727
  } },
56732
56728
  React__default["default"].createElement(XOctagon$1, { style: { display: 'inline', margin: '0 5px 0 0' } }),
56733
56729
  " Cancel"),
56734
- React__default["default"].createElement(Button, { style: { marginRight: '0.75rem' }, disabled: !run || !run.status || ![dist$1.RunStatusEnum.Failed, dist$1.RunStatusEnum.Cancelled].includes(run.status.status), onClick: function (e) {
56730
+ React__default["default"].createElement(Button, { style: { marginRight: '0.75rem' }, disabled: !run || !run.status ||
56731
+ ![dist$1.RunStatusEnum.Failed, dist$1.RunStatusEnum.Cancelled].includes(run.status.status) ||
56732
+ daysSinceFinished >= 14, onClick: function (e) {
56735
56733
  e.stopPropagation();
56736
56734
  if (!run)
56737
56735
  return;