Add client open mode preference (same tab / new window) to user settings

This commit is contained in:
root
2026-06-26 19:53:32 +02:00
parent 6add7cdfb1
commit 9c92cd297a
8 changed files with 200 additions and 37 deletions
@@ -85,6 +85,24 @@
<hr style="border-color: var(--color-text-muted);">
{{-- Client Settings --}}
<div>
<h3 class="text-lg font-semibold mb-4" style="color: var(--color-text);">{{ __('Client Settings') }}</h3>
<div class="space-y-4">
<label class="flex items-center justify-between cursor-pointer p-3 rounded" style="background-color: var(--color-surface);">
<div>
<span class="font-semibold" style="color: var(--color-text);">{{ __('Open client in new window') }}</span>
<p class="text-sm" style="color: var(--color-text-muted);">{{ __('When enabled, the game client will open in a new browser tab instead of navigating away from the site') }}</p>
</div>
<input type="hidden" name="client_open_mode" value="same">
<input type="checkbox" name="client_open_mode" value="new_window" {{ old('client_open_mode', $preferences['client_open_mode'] ?? 'same') === 'new_window' ? 'checked' : '' }}
class="w-5 h-5 rounded cursor-pointer" style="accent-color: var(--color-primary);">
</label>
</div>
</div>
<hr style="border-color: var(--color-text-muted);">
{{-- Notification Settings --}}
<div>
<h3 class="text-lg font-semibold mb-4" style="color: var(--color-text);">{{ __('Notification Settings') }}</h3>