@ansible/ansible-ui-framework 2.4.2567 → 2.4.2569

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -2223,7 +2223,7 @@ function hy(e) {
2223
2223
  }, [d, i, a, e]);
2224
2224
  const y = li(e.label ?? "actions-dropdown");
2225
2225
  if (f.length === 0) return /* @__PURE__ */ g.jsx(g.Fragment, {});
2226
- const b = u === kr.primary || p && !!(l != null && l.length), x = u === kr.primary && !p && !!(l != null && l.length), w = !i && !t, _ = t;
2226
+ const b = !e.iconOnly && (u === kr.primary || p && !!(l != null && l.length)), x = u === kr.primary && !p && !!(l != null && l.length), w = !i && !t, _ = t;
2227
2227
  let S;
2228
2228
  r ? S = r : c ? S = c : n ? S = i : S = void 0;
2229
2229
  const C = n && _ ? /* @__PURE__ */ g.jsx(dr, { children: /* @__PURE__ */ g.jsx(_, {}) }) : i, E = /* @__PURE__ */ g.jsxs(
@@ -39742,7 +39742,20 @@ function qj(e) {
39742
39742
  );
39743
39743
  }
39744
39744
  function a5e(e) {
39745
- return /* @__PURE__ */ g.jsx(Ee, { "data-cy": "Cancel", type: "button", variant: "link", onClick: e.onCancel, children: e.children });
39745
+ const [t, n] = ne(!1), r = () => {
39746
+ n(!0), e.onCancel();
39747
+ };
39748
+ return /* @__PURE__ */ g.jsx(
39749
+ Ee,
39750
+ {
39751
+ "data-cy": "Cancel",
39752
+ type: "button",
39753
+ variant: "link",
39754
+ onClick: r,
39755
+ isLoading: t,
39756
+ children: e.children
39757
+ }
39758
+ );
39746
39759
  }
39747
39760
  const o5e = De(Yn)`
39748
39761
  margin-block-end: var(--pf-v5-global--spacer--xl);