Skip to content

Commit c822cb0

Browse files
authored
Update fast-search-card.js
1 parent 794f936 commit c822cb0

File tree

1 file changed

+46
-15
lines changed

1 file changed

+46
-15
lines changed

dist/fast-search-card.js

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7549,8 +7549,7 @@ class FastSearchCard extends HTMLElement {
75497549
<div class="shortcuts-controls">
75507550
<button class="shortcuts-btn active" data-shortcuts-tab="timer">Timer</button>
75517551
<button class="shortcuts-btn" data-shortcuts-tab="zeitplan">Zeitplan</button>
7552-
<button class="shortcuts-btn" data-shortcuts-tab="scenes">Szenen</button>
7553-
<button class="shortcuts-btn" data-shortcuts-tab="scripts">Skripte</button>
7552+
<button class="shortcuts-btn" data-shortcuts-tab="actions">Aktionen</button>
75547553
</div>
75557554
</div>
75567555

@@ -7594,14 +7593,9 @@ class FastSearchCard extends HTMLElement {
75947593
</div>
75957594
</div>
75967595

7597-
<!-- ✅ SZENEN TAB (unverändert) -->
7598-
<div class="shortcuts-tab-content" data-shortcuts-content="scenes">
7599-
<p>Szenen Content</p>
7600-
</div>
7601-
7602-
<!-- ✅ SKRIPTE TAB (unverändert) -->
7603-
<div class="shortcuts-tab-content" data-shortcuts-content="scripts">
7604-
<p>Skripte Content</p>
7596+
<!-- ✅ AKTIONEN TAB -->
7597+
<div class="shortcuts-tab-content" data-shortcuts-content="actions">
7598+
<p>Aktionen Content - wird implementiert</p>
76057599
</div>
76067600
</div>
76077601
</div>
@@ -11132,11 +11126,8 @@ class FastSearchCard extends HTMLElement {
1113211126
case 'zeitplan':
1113311127
this.initializeScheduleTab(item, targetContent);
1113411128
break;
11135-
case 'scenes':
11136-
this.initializeScenesTab(item, targetContent);
11137-
break;
11138-
case 'scripts':
11139-
this.initializeScriptsTab(item, targetContent);
11129+
case 'actions':
11130+
this.initializeActionsTab(item, targetContent);
1114011131
break;
1114111132
}
1114211133
}
@@ -11151,6 +11142,46 @@ class FastSearchCard extends HTMLElement {
1115111142
}, 100);
1115211143
}
1115311144

11145+
// ✅ Aktionen Tab Initialisierung
11146+
initializeActionsTab(item, container) {
11147+
console.log('🎯 Initializing Actions Tab for', item.name);
11148+
11149+
container.innerHTML = `
11150+
<div class="actions-container">
11151+
<div class="actions-header">
11152+
<h4>Verfügbare Aktionen für ${item.name}</h4>
11153+
<div class="actions-filter-chips">
11154+
<button class="action-filter-chip active" data-action-filter="all">
11155+
Alle <span class="chip-count" id="actions-all-count">0</span>
11156+
</button>
11157+
<button class="action-filter-chip" data-action-filter="scenes">
11158+
🎬 Szenen <span class="chip-count" id="actions-scenes-count">0</span>
11159+
</button>
11160+
<button class="action-filter-chip" data-action-filter="scripts">
11161+
📜 Skripte <span class="chip-count" id="actions-scripts-count">0</span>
11162+
</button>
11163+
<button class="action-filter-chip" data-action-filter="automations">
11164+
⚙️ Automationen <span class="chip-count" id="actions-automations-count">0</span>
11165+
</button>
11166+
</div>
11167+
</div>
11168+
11169+
<div class="actions-results-container">
11170+
<div class="actions-loading">
11171+
🔄 Lade verfügbare Aktionen...
11172+
</div>
11173+
11174+
<div class="actions-results" id="actions-results-${item.id}">
11175+
<!-- Content wird dynamisch gefüllt -->
11176+
</div>
11177+
</div>
11178+
</div>
11179+
`;
11180+
11181+
// TODO: Filter Event Listeners und Action Loading
11182+
console.log('Actions Tab HTML erstellt');
11183+
}
11184+
1115411185
initializeTimerTab(item, container) {
1115511186
console.log('🔥 NEUE VERSION 2024 - Initializing Timer Tab for', item.name);
1115611187

0 commit comments

Comments
 (0)