@scalio-cloud/ui 0.98.2 → 0.98.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/react/tenancy.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalio-cloud/ui",
3
- "version": "0.98.2",
3
+ "version": "0.98.3",
4
4
  "description": "Scalio Control Room design tokens, Tailwind preset, self-hosted fonts, the shared app header, sign-in layout, sidebar and page blocks",
5
5
  "license": "SEE LICENSE IN README.md",
6
6
  "private": false,
package/react/tenancy.js CHANGED
@@ -392,6 +392,8 @@ function StatusChip({ status, L }) {
392
392
  return h("span", { className: `scalio-tenancy-status ${tone}`, "data-status": status }, L.statuses[status] || status || "");
393
393
  }
394
394
  function AccessChips({ t, L }) {
395
+ // A simulated tenant (method or status) has no Microsoft access: nothing to show (Nr. 709).
396
+ if (t.method === "simulated" || t.status === "simulated") return null;
395
397
  const chip = (on, text) => h("span", { className: `scalio-tenancy-chip${on ? " is-on" : ""}` }, on ? h(Icons.Check, { width: 11, height: 11 }) : h(Icons.X, { width: 11, height: 11 }), text);
396
398
  return h("span", { className: "scalio-tenancy-chips" }, chip(!!t.read, L.readShort), chip(!!t.write, L.writeShort));
397
399
  }