Fix: Tab-URL-Keys auf Englisch (general, domains, backup, notifications)

main v1.1.413
boban 2026-04-27 03:41:34 +02:00
parent eb77ec3342
commit 49463bf34d
2 changed files with 8 additions and 8 deletions

View File

@ -15,9 +15,9 @@ use Livewire\Component;
class SettingsForm extends Component
{
#[Url]
public string $tab = 'allgemein';
public string $tab = 'general';
private const VALID_TABS = ['allgemein', 'domains', 'sicherung', 'meldungen'];
private const VALID_TABS = ['general', 'domains', 'backup', 'notifications'];
// Allgemein
public string $instance_name = '';

View File

@ -32,10 +32,10 @@
<div style="display:flex;gap:2px;border-bottom:1px solid var(--mw-b2);margin-bottom:20px">
@php
$tabs = [
'allgemein' => ['label' => 'Allgemein', 'icon' => '<circle cx="8" cy="8" r="2.2" stroke="currentColor" stroke-width="1.3"/><path d="M8 1.5v1.3M8 13.2v1.3M1.5 8h1.3M13.2 8h1.3M3.2 3.2l.9.9M11.9 11.9l.9.9M3.2 12.8l.9-.9M11.9 4.1l.9-.9" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/>'],
'general' => ['label' => 'Allgemein', 'icon' => '<circle cx="8" cy="8" r="2.2" stroke="currentColor" stroke-width="1.3"/><path d="M8 1.5v1.3M8 13.2v1.3M1.5 8h1.3M13.2 8h1.3M3.2 3.2l.9.9M11.9 11.9l.9.9M3.2 12.8l.9-.9M11.9 4.1l.9-.9" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/>'],
'domains' => ['label' => 'Domains & SSL','icon' => '<circle cx="8" cy="8" r="6" stroke="currentColor" stroke-width="1.3"/><path d="M8 2C6 4.5 5 6.2 5 8s1 3.5 3 6M8 2c2 2.5 3 4.2 3 6s-1 3.5-3 6M2 8h12" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/>'],
'sicherung' => ['label' => 'Sicherung', 'icon' => '<ellipse cx="8" cy="4" rx="5" ry="2" stroke="currentColor" stroke-width="1.3"/><path d="M3 4v4c0 1.1 2.24 2 5 2s5-.9 5-2V4" stroke="currentColor" stroke-width="1.3"/><path d="M3 8v4c0 1.1 2.24 2 5 2s5-.9 5-2V8" stroke="currentColor" stroke-width="1.3"/>'],
'meldungen' => ['label' => 'Meldungen', 'icon' => '<path d="M8 14a1.5 1.5 0 0 0 3 0M8 2a4 4 0 0 1 4 4v3l1 1H3l1-1V6a4 4 0 0 1 4-4Z" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/>'],
'backup' => ['label' => 'Sicherung', 'icon' => '<ellipse cx="8" cy="4" rx="5" ry="2" stroke="currentColor" stroke-width="1.3"/><path d="M3 4v4c0 1.1 2.24 2 5 2s5-.9 5-2V4" stroke="currentColor" stroke-width="1.3"/><path d="M3 8v4c0 1.1 2.24 2 5 2s5-.9 5-2V8" stroke="currentColor" stroke-width="1.3"/>'],
'notifications' => ['label' => 'Meldungen', 'icon' => '<path d="M8 14a1.5 1.5 0 0 0 3 0M8 2a4 4 0 0 1 4 4v3l1 1H3l1-1V6a4 4 0 0 1 4-4Z" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/>'],
];
@endphp
@foreach($tabs as $key => $cfg)
@ -48,7 +48,7 @@
</div>
{{-- ═══ Tab: Allgemein ═══ --}}
@if($tab === 'allgemein')
@if($tab === 'general')
<div class="sec-layout">
<div style="min-width:0">
<div class="mbx-sections">
@ -228,7 +228,7 @@
@endif
{{-- ═══ Tab: Sicherung ═══ --}}
@if($tab === 'sicherung')
@if($tab === 'backup')
<div class="sec-layout">
<div style="min-width:0"><div class="mbx-sections">
<div class="mbx-section" id="backup">
@ -402,7 +402,7 @@
@endif
{{-- ═══ Tab: Meldungen ═══ --}}
@if($tab === 'meldungen')
@if($tab === 'notifications')
<div class="sec-layout">
<div style="min-width:0"><div class="mbx-sections">
<div class="mbx-section">