Open satellite dashboard in new tab

This commit is contained in:
James Smith
2026-03-18 23:41:29 +00:00
parent 73e17e8509
commit 0ff0df632b
3 changed files with 6 additions and 6 deletions

View File

@@ -331,7 +331,7 @@ const CommandPalette = (function() {
function goToMode(mode) { function goToMode(mode) {
if (mode === 'satellite') { if (mode === 'satellite') {
window.location.href = '/satellite/dashboard'; window.open('/satellite/dashboard', '_blank', 'noopener');
return; return;
} }

View File

@@ -394,7 +394,7 @@
<div class="mode-category"> <div class="mode-category">
<h3 class="mode-category-title"><span class="mode-category-icon icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"/><path d="m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"/><path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/></svg></span> Space</h3> <h3 class="mode-category-title"><span class="mode-category-icon icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"/><path d="m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"/><path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/></svg></span> Space</h3>
<div class="mode-grid mode-grid-compact"> <div class="mode-grid mode-grid-compact">
<a href="/satellite/dashboard" class="mode-card mode-card-sm" style="text-decoration: none;"> <a href="/satellite/dashboard" target="_blank" rel="noopener noreferrer" class="mode-card mode-card-sm" style="text-decoration: none;">
<span class="mode-icon icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 7L9 3 5 7l4 4"/><path d="m17 11 4 4-4 4-4-4"/><path d="m8 12 4 4 6-6-4-4-6 6"/><path d="m16 8 3-3"/><path d="M9 21a6 6 0 0 0-6-6"/></svg></span> <span class="mode-icon icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 7L9 3 5 7l4 4"/><path d="m17 11 4 4-4 4-4-4"/><path d="m8 12 4 4 6-6-4-4-6 6"/><path d="m16 8 3-3"/><path d="M9 21a6 6 0 0 0-6-6"/></svg></span>
<span class="mode-name">Satellite</span> <span class="mode-name">Satellite</span>
</a> </a>
@@ -3605,7 +3605,7 @@
// Mode selection from welcome page // Mode selection from welcome page
function selectMode(mode) { function selectMode(mode) {
if (mode === 'satellite') { if (mode === 'satellite') {
window.location.href = '/satellite/dashboard'; window.open('/satellite/dashboard', '_blank', 'noopener');
return; return;
} }
selectedStartMode = mode; selectedStartMode = mode;
@@ -4404,7 +4404,7 @@
const previousMode = currentMode; const previousMode = currentMode;
if (mode === 'listening') mode = 'waterfall'; if (mode === 'listening') mode = 'waterfall';
if (mode === 'satellite') { if (mode === 'satellite') {
window.location.href = '/satellite/dashboard'; window.open('/satellite/dashboard', '_blank', 'noopener');
return; return;
} }
if (!validModes.has(mode)) mode = 'pager'; if (!validModes.has(mode)) mode = 'pager';

View File

@@ -17,7 +17,7 @@
{% macro mode_item(mode, label, icon_svg, href=None) -%} {% macro mode_item(mode, label, icon_svg, href=None) -%}
{%- set is_active = 'active' if active_mode == mode else '' -%} {%- set is_active = 'active' if active_mode == mode else '' -%}
{%- if mode == 'satellite' %} {%- if mode == 'satellite' %}
<a href="/satellite/dashboard" class="mode-nav-btn {{ is_active }}" style="text-decoration: none;" data-mode="{{ mode }}" data-mode-label="{{ label }}" aria-label="{{ label }} mode"> <a href="/satellite/dashboard" target="_blank" rel="noopener noreferrer" class="mode-nav-btn {{ is_active }}" style="text-decoration: none;" data-mode="{{ mode }}" data-mode-label="{{ label }}" aria-label="{{ label }} mode">
<span class="nav-icon icon">{{ icon_svg | safe }}</span> <span class="nav-icon icon">{{ icon_svg | safe }}</span>
<span class="nav-label">{{ label }}</span> <span class="nav-label">{{ label }}</span>
</a> </a>
@@ -42,7 +42,7 @@
{% macro mobile_item(mode, label, icon_svg, href=None) -%} {% macro mobile_item(mode, label, icon_svg, href=None) -%}
{%- set is_active = 'active' if active_mode == mode else '' -%} {%- set is_active = 'active' if active_mode == mode else '' -%}
{%- if mode == 'satellite' %} {%- if mode == 'satellite' %}
<a href="/satellite/dashboard" class="mobile-nav-btn {{ is_active }}" style="text-decoration: none;" data-mode="{{ mode }}" data-mode-label="{{ label }}" aria-label="{{ label }} mode"> <a href="/satellite/dashboard" target="_blank" rel="noopener noreferrer" class="mobile-nav-btn {{ is_active }}" style="text-decoration: none;" data-mode="{{ mode }}" data-mode-label="{{ label }}" aria-label="{{ label }} mode">
<span class="icon icon--sm">{{ icon_svg | safe }}</span> {{ label }} <span class="icon icon--sm">{{ icon_svg | safe }}</span> {{ label }}
</a> </a>
{%- elif href %} {%- elif href %}