Update navigation titles and enhance tournament group validation logic

This commit modifies the navigation titles in `App.vue`, changing "Verwaltung" to "Tagesgeschäft" and "Organisation" to "Wettbewerbe", while also introducing a new section for "Einstellungen". Additionally, it refines the group count validation logic in `TournamentTab.vue` by correcting the method calls for `getTotalNumberOfGroups`, ensuring proper functionality for starting and resetting knockout rounds based on the number of groups present. These changes improve the user interface and enhance the tournament management experience.
This commit is contained in:
Torsten Schulz (local)
2025-11-15 22:35:02 +01:00
parent 4a83e5c159
commit d392ccddd5
2 changed files with 16 additions and 12 deletions

View File

@@ -62,7 +62,7 @@
<nav v-if="selectedClub" class="nav-menu">
<div class="nav-section">
<h4 class="nav-title">Verwaltung</h4>
<h4 class="nav-title">Tagesgeschäft</h4>
<router-link v-if="hasPermission('members', 'read')" to="/members" class="nav-link" title="Mitglieder">
<span class="nav-icon">👥</span>
Mitglieder
@@ -82,18 +82,22 @@
</div>
<div class="nav-section">
<h4 class="nav-title">Organisation</h4>
<router-link v-if="isAdmin" to="/club-settings" class="nav-link" title="Vereinseinstellungen">
<span class="nav-icon"></span>
Vereinseinstellungen
<h4 class="nav-title">Wettbewerbe</h4>
<router-link v-if="hasPermission('tournaments', 'read')" to="/tournaments" class="nav-link" title="Turniere">
<span class="nav-icon">🏆</span>
Turniere
</router-link>
<router-link v-if="hasPermission('schedule', 'read')" to="/schedule" class="nav-link" title="Spielpläne">
<span class="nav-icon">📅</span>
Spielpläne
</router-link>
<router-link v-if="hasPermission('tournaments', 'read')" to="/tournaments" class="nav-link" title="Turniere">
<span class="nav-icon">🏆</span>
Turniere
</div>
<div class="nav-section">
<h4 class="nav-title">Einstellungen</h4>
<router-link v-if="isAdmin" to="/club-settings" class="nav-link" title="Vereinseinstellungen">
<span class="nav-icon"></span>
Vereinseinstellungen
</router-link>
<router-link v-if="hasPermission('predefined_activities', 'read')" to="/predefined-activities" class="nav-link" title="Vordefinierte Aktivitäten">
<span class="nav-icon"></span>

View File

@@ -530,18 +530,18 @@
Spiele erstellen
</button>
</div>
<div v-if="canStartKnockout && !showKnockout && getTotalNumberOfGroups() > 1" class="ko-start">
<div v-if="canStartKnockout && !showKnockout && getTotalNumberOfGroups > 1" class="ko-start">
<button @click="startKnockout">
K.o.-Runde starten
</button>
</div>
<div v-if="showKnockout && canResetKnockout && getTotalNumberOfGroups() > 1" class="ko-reset" style="margin-top:1rem">
<div v-if="showKnockout && canResetKnockout && getTotalNumberOfGroups > 1" class="ko-reset" style="margin-top:1rem">
<button @click="resetKnockout" class="trash-btn">
🗑️ K.o.-Runde
</button>
</div>
<section v-if="showKnockout && getTotalNumberOfGroups() > 1" class="ko-round">
<section v-if="showKnockout && getTotalNumberOfGroups > 1" class="ko-round">
<h4>K.-o.-Runde</h4>
<table>
<thead>
@@ -1305,7 +1305,7 @@ export default {
return true;
}
// Gruppenmodus → prüfe Anzahl der Gruppen
const totalGroups = this.getTotalNumberOfGroups();
const totalGroups = this.getTotalNumberOfGroups;
if (totalGroups <= 1) {
// Nur eine Gruppe → keine K.O.-Runde möglich
return false;