@cccarv82/freya 2.1.4 → 2.1.5
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/cli/web-ui.js +4 -4
- package/package.json +1 -1
package/cli/web-ui.js
CHANGED
|
@@ -700,7 +700,7 @@
|
|
|
700
700
|
}
|
|
701
701
|
if (health) {
|
|
702
702
|
health.onclick = () => {
|
|
703
|
-
const isHealth = document.body && document.body.dataset && document.body.dataset.page === companion;
|
|
703
|
+
const isHealth = document.body && document.body.dataset && document.body.dataset.page === 'companion';
|
|
704
704
|
if (!isHealth) window.location.href = '/companion';
|
|
705
705
|
};
|
|
706
706
|
}
|
|
@@ -948,7 +948,7 @@
|
|
|
948
948
|
async function refreshHealthChecklist() {
|
|
949
949
|
try {
|
|
950
950
|
setPill('run', 'checklist…');
|
|
951
|
-
const r = await api('/api/
|
|
951
|
+
const r = await api('/api/health/checklist', { dir: dirOrDefault() });
|
|
952
952
|
if (r && r.needsInit) {
|
|
953
953
|
setOut(r.error || 'Workspace not initialized');
|
|
954
954
|
setPill('plan', 'needs init');
|
|
@@ -971,7 +971,7 @@
|
|
|
971
971
|
if (sp) sp.textContent = dirOrDefault();
|
|
972
972
|
setPill('run', 'health…');
|
|
973
973
|
setOut('');
|
|
974
|
-
const r = await api('/api/
|
|
974
|
+
const r = await api('/api/health', { dir: dirOrDefault() });
|
|
975
975
|
if (r && r.needsInit) {
|
|
976
976
|
setOut(r.error || 'Workspace not initialized');
|
|
977
977
|
setLast(null);
|
|
@@ -1314,7 +1314,7 @@
|
|
|
1314
1314
|
} catch {}
|
|
1315
1315
|
|
|
1316
1316
|
const isReportsPage = document.body && document.body.dataset && document.body.dataset.page === 'reports';
|
|
1317
|
-
const isCompanionPage = document.body && document.body.dataset && document.body.dataset.page === companion;
|
|
1317
|
+
const isCompanionPage = document.body && document.body.dataset && document.body.dataset.page === 'companion';
|
|
1318
1318
|
|
|
1319
1319
|
// Load persisted settings from the workspace + bootstrap (auto-init + auto-health)
|
|
1320
1320
|
(async () => {
|