@oondemand/oon-core-front 0.3.59 → 0.3.60
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/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4502,7 +4502,7 @@ function Sidebar({ app, menu, registry }) {
|
|
|
4502
4502
|
// package.json
|
|
4503
4503
|
var package_default = {
|
|
4504
4504
|
name: "@oondemand/oon-core-front",
|
|
4505
|
-
version: "0.3.
|
|
4505
|
+
version: "0.3.60",
|
|
4506
4506
|
repository: {
|
|
4507
4507
|
type: "git",
|
|
4508
4508
|
url: "git+https://github.com/oondemand/oon-platform.git",
|
|
@@ -5872,6 +5872,10 @@ function statusPalette(status) {
|
|
|
5872
5872
|
if (normalized2.includes("conclu\xEDdo") || normalized2.includes("ativo") || normalized2 === "ok") return "green";
|
|
5873
5873
|
return "gray";
|
|
5874
5874
|
}
|
|
5875
|
+
function integrationErrorMessage(error) {
|
|
5876
|
+
const message = error?.message;
|
|
5877
|
+
return typeof message === "string" && message.trim() ? message : "N\xE3o foi poss\xEDvel operar a configura\xE7\xE3o do provedor.";
|
|
5878
|
+
}
|
|
5875
5879
|
function countActive(values) {
|
|
5876
5880
|
if (!values) return 0;
|
|
5877
5881
|
return Object.entries(values).filter(([status]) => !["Conclu\xEDdo", "Arquivado"].includes(status)).reduce((sum, [, count]) => sum + Number(count || 0), 0);
|
|
@@ -6100,7 +6104,7 @@ function ProviderConfigurationPanel({ provider }) {
|
|
|
6100
6104
|
] })
|
|
6101
6105
|
] }),
|
|
6102
6106
|
selected?.lastConnectionError ? /* @__PURE__ */ jsx38(Text23, { fontSize: "sm", color: "red.600", children: selected.lastConnectionError }) : null,
|
|
6103
|
-
error ? /* @__PURE__ */ jsx38(Text23, { fontSize: "sm", color: "red.600", children:
|
|
6107
|
+
error ? /* @__PURE__ */ jsx38(Text23, { fontSize: "sm", color: "red.600", children: integrationErrorMessage(error) }) : null
|
|
6104
6108
|
] }) });
|
|
6105
6109
|
}
|
|
6106
6110
|
function CoreIntegration({ label = "Integra\xE7\xF5es" }) {
|