This commit is contained in:
Mateusz Gruszczyński
2026-09-01 22:20:10 +02:00
parent 1cb62c8d0b
commit 16e0d94564
47 changed files with 2565 additions and 117 deletions
+5
View File
@@ -5,6 +5,7 @@ const VIEW_ROUTES = Object.freeze({
groups: '/groups',
schedules: '/schedules',
automations: '/automations',
flows: '/flows',
simulation: '/simulation',
night: '/night-mode',
homeassistant: '/home-assistant',
@@ -84,6 +85,10 @@ function applyRouteFromLocation() {
return;
}
if (first === 'flows') {
if (parts[1]) requestAnimationFrame(() => openFlowEditor(parts[1] === 'new' ? '' : parts[1], { push: false }));
else if (!$('#flowEditor')?.hidden) closeFlowEditor({ push: false, force: true });
}
if (!parts.length || first === 'index.html') updateBrowserUrl(VIEW_ROUTES.dashboard, true);
}