v0.9.6
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user