@scalio-cloud/ui 0.102.0 → 0.103.0
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/mail.js +14 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalio-cloud/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.103.0",
|
|
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/mail.js
CHANGED
|
@@ -304,8 +304,9 @@ function select(id, value, options, onChange, extra) {
|
|
|
304
304
|
// list the provider `default` («Vorgabe verwenden») and send `default` {available, source, provider, from_name,
|
|
305
305
|
// from_address, tenant_id, smtp_host}: the page shows where the default comes from and where mails go.
|
|
306
306
|
// With scalio-platform 0.45.0 the status names a `reason` when the app can not set the send right itself: the button
|
|
307
|
-
//
|
|
308
|
-
// the app's own texts, e.g. Citadel «Mit Scalio Schreiben setzt
|
|
307
|
+
// page shows only that reason next to the script, without the button «Senderecht setzen» (0.103.0; before it was greyed
|
|
308
|
+
// out) (grantOffHint {read_only, no_exchange, identity}: the app's own texts, e.g. Citadel «Mit Scalio Schreiben setzt
|
|
309
|
+
// Citadel das Senderecht selbst»).
|
|
309
310
|
// With scalio-platform 0.60.0 settings and the test mail answer carry from_name_applies, from_name_hint and
|
|
310
311
|
// from_name_hint_de: when applies is false (e.g. Microsoft 365 sends with the mailbox's display name) the sender name
|
|
311
312
|
// has no effect; the field is locked and the hint shown, but only for the ways graph, tenant and default (never for SMTP). Without these fields (older backends) nothing changes.
|
|
@@ -611,12 +612,13 @@ function MailTransport(props) {
|
|
|
611
612
|
);
|
|
612
613
|
|
|
613
614
|
const auto = !!(rightsInfo && rightsInfo.mode === "auto" && client.grantRights);
|
|
614
|
-
// The button «Senderecht setzen»
|
|
615
|
-
//
|
|
615
|
+
// The button «Senderecht setzen» only where the app can set the right (mode auto); where the app's own connection
|
|
616
|
+
// may not (scalio-platform 0.45.0 `reason`) only the reason is shown, next to the script (0.103.0).
|
|
616
617
|
const offReason = rightsInfo && rightsInfo.mode === "script" && L.grantOff[rightsInfo.reason] ? rightsInfo.reason : "";
|
|
617
618
|
const rightsOk = !!(rightsInfo && rightsInfo.state === "ok");
|
|
618
|
-
// Nothing to do once the right is there: no
|
|
619
|
-
const
|
|
619
|
+
// Nothing to do once the right is there: no reason next to «Senderecht vorhanden».
|
|
620
|
+
const showOff = !rightsOk && !!offReason;
|
|
621
|
+
const showGrant = auto || (wasBlocked && !!client.grantRights && !offReason);
|
|
620
622
|
const rightsKnown = !!(rightsInfo && (rightsInfo.state === "ok" || rightsInfo.state === "missing"));
|
|
621
623
|
const rights = form.send_rights && (form.provider === "graph" || form.provider === "tenant" || form.provider === "default")
|
|
622
624
|
? h(
|
|
@@ -647,15 +649,14 @@ function MailTransport(props) {
|
|
|
647
649
|
rightsInfo && rightsInfo.detail && !rightsOk
|
|
648
650
|
? h("p", { className: "scalio-settings-help is-error", "data-testid": "mail-rights-detail" }, rightsInfo.detail)
|
|
649
651
|
: null,
|
|
650
|
-
|
|
652
|
+
showOff
|
|
653
|
+
? h("p", { className: "scalio-settings-help", "data-testid": "mail-rights-grant-off" },
|
|
654
|
+
(props.grantOffHint && props.grantOffHint[offReason]) || L.grantOff[offReason])
|
|
655
|
+
: null,
|
|
656
|
+
showGrant
|
|
651
657
|
? h("div", { className: "scalio-settings-section-footer" },
|
|
652
|
-
offReason
|
|
653
|
-
? h("p", { className: "scalio-settings-help", "data-testid": "mail-rights-grant-off" },
|
|
654
|
-
(props.grantOffHint && props.grantOffHint[offReason]) || L.grantOff[offReason])
|
|
655
|
-
: null,
|
|
656
658
|
h("button", { type: "button", className: "scalio-btn is-primary", onClick: grant, disabled: granting || !auto || blocked,
|
|
657
|
-
title:
|
|
658
|
-
"data-testid": "mail-rights-grant" },
|
|
659
|
+
title: blocked ? L.exchangeUnreachable : undefined, "data-testid": "mail-rights-grant" },
|
|
659
660
|
h(Icons.Check, { className: "scalio-icon" }), L.autoGrant))
|
|
660
661
|
: null,
|
|
661
662
|
script
|