@scalio-cloud/ui 0.8.0 → 0.8.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/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/react/support.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.8.1
|
|
4
|
+
- `SupportConnection` fills in the portal address of the instance's stage (`default_portal` from scalio-connect
|
|
5
|
+
0.5.0: dev -> portaldev, test -> portaltest, others -> portal.scaliocloud.com). **Visible change:** the address
|
|
6
|
+
field is no longer empty on the settings card. No change with older backends.
|
|
7
|
+
|
|
3
8
|
## 0.8.0
|
|
4
9
|
- New `SecurityFactors` (profile: authenticator app, backup codes, passkeys) with `securityApi(api, webauthn)`, and
|
|
5
10
|
`LicensePanel` (status, usage, add-ons, key) with `licenseApi(api)` and `mapScalioLicense`. They replace the copies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalio-cloud/ui",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
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/support.js
CHANGED
|
@@ -257,7 +257,11 @@ function SupportConnection({ client, lang, labels, onChange }) {
|
|
|
257
257
|
const [note, setNote] = React.useState("");
|
|
258
258
|
React.useEffect(() => {
|
|
259
259
|
let alive = true;
|
|
260
|
-
client.connection().then((d) =>
|
|
260
|
+
client.connection().then((d) => {
|
|
261
|
+
if (!alive) return;
|
|
262
|
+
setSt(d);
|
|
263
|
+
if (d && d.default_portal) setPortal((p) => p || d.default_portal); // the portal of this instance's stage
|
|
264
|
+
}).catch((err) => alive && (setError(errorText(err)), setSt(false)));
|
|
261
265
|
return () => { alive = false; };
|
|
262
266
|
}, [client]);
|
|
263
267
|
const run = async (fn, ok) => {
|