@scalio-cloud/ui 0.98.0 → 0.98.2
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/package.json +1 -1
- package/react/agents.js +3 -1
- package/react/tenancy.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalio-cloud/ui",
|
|
3
|
-
"version": "0.98.
|
|
3
|
+
"version": "0.98.2",
|
|
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/agents.js
CHANGED
|
@@ -480,7 +480,9 @@ function AgentsPanel(props) {
|
|
|
480
480
|
}, [load, props.refreshMs]);
|
|
481
481
|
|
|
482
482
|
const offered = (data && data.roles) || [];
|
|
483
|
-
|
|
483
|
+
// several roles offered: none preselected, the admin picks (no Active Directory by default);
|
|
484
|
+
// a single offered role has no checkbox, so it is the only possible choice
|
|
485
|
+
const selectedRoles = codeRoles || (offered.length === 1 ? [offered[0].name] : []);
|
|
484
486
|
|
|
485
487
|
const run = async (fn, okText) => {
|
|
486
488
|
setBusy(true);
|
package/react/tenancy.js
CHANGED
|
@@ -432,7 +432,7 @@ function TenantList({ tenants, organizations, columns, actions, appName, limit,
|
|
|
432
432
|
h("td", null, h("div", null, h("strong", null, t.name)), t.domain ? h("div", { className: "scalio-mono scalio-tenancy-hint" }, t.domain) : null),
|
|
433
433
|
showOrg ? h("td", { "data-testid": `${id}-org-${t.id}` }, orgName(t.organization_id)) : null,
|
|
434
434
|
h("td", { "data-testid": `${id}-method-${t.id}` }, h("span", { className: "scalio-tenancy-method" }, L.methods[t.method] || t.method || "")),
|
|
435
|
-
h("td",
|
|
435
|
+
h("td", { "data-testid": `${id}-access-${t.id}` }, t.method === "simulated" || t.status === "simulated" ? null : h(AccessChips, { t, L })),
|
|
436
436
|
h("td", null, h(StatusChip, { status: t.status, L })),
|
|
437
437
|
cols.map((c) => h("td", { key: c.id }, c.render(t))),
|
|
438
438
|
h("td", { className: "scalio-tenancy-row-actions" },
|