Spaces:
Running
Running
Remove WhatsApp status tiles from health server
Browse filesRemoved WhatsApp status tiles from the health server response.
- health-server.js +0 -11
health-server.js
CHANGED
|
@@ -184,17 +184,6 @@ function renderDashboard(data) {
|
|
| 184 |
tile({ title: "Telegram", value: badge(TELEGRAM_ENABLED ? "Enabled" : "Disabled", TELEGRAM_ENABLED ? "ok" : "neutral"), detail: TELEGRAM_ENABLED ? "Bot channel active" : "Not configured", tone: TELEGRAM_ENABLED ? "ok" : "neutral" }),
|
| 185 |
];
|
| 186 |
|
| 187 |
-
if (WHATSAPP_ENABLED) {
|
| 188 |
-
const wa = data.whatsapp || {};
|
| 189 |
-
const waTone = wa.connected ? "ok" : wa.pairing ? "warn" : "neutral";
|
| 190 |
-
const waLabel = wa.connected ? "Connected" : wa.pairing ? "Pairing…" : wa.configured ? "Waiting" : "Disabled";
|
| 191 |
-
const waDetail = wa.connected
|
| 192 |
-
? "WhatsApp channel active"
|
| 193 |
-
: wa.pairing
|
| 194 |
-
? "Scan QR code in Control UI → WhatsApp"
|
| 195 |
-
: "WhatsApp not yet connected";
|
| 196 |
-
tiles.push(tile({ title: "WhatsApp", value: badge(waLabel, waTone), detail: waDetail, tone: waTone }));
|
| 197 |
-
}
|
| 198 |
|
| 199 |
tiles.push(
|
| 200 |
tile({ title: "Backup", value: badge(syncStatus.toUpperCase(), syncTone), detail: escapeHtml(data.sync?.message || "No status yet"), tone: syncTone, meta: data.sync?.timestamp ? `<span class="local-time" data-iso="${data.sync.timestamp}"></span>` : "" }),
|
|
|
|
| 184 |
tile({ title: "Telegram", value: badge(TELEGRAM_ENABLED ? "Enabled" : "Disabled", TELEGRAM_ENABLED ? "ok" : "neutral"), detail: TELEGRAM_ENABLED ? "Bot channel active" : "Not configured", tone: TELEGRAM_ENABLED ? "ok" : "neutral" }),
|
| 185 |
];
|
| 186 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 187 |
|
| 188 |
tiles.push(
|
| 189 |
tile({ title: "Backup", value: badge(syncStatus.toUpperCase(), syncTone), detail: escapeHtml(data.sync?.message || "No status yet"), tone: syncTone, meta: data.sync?.timestamp ? `<span class="local-time" data-iso="${data.sync.timestamp}"></span>` : "" }),
|