File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12106,12 +12106,13 @@ class FastSearchCard extends HTMLElement {
1210612106 if (prevBtn) prevBtn.addEventListener('click', () => this.callMusicAssistantService('media_previous_track', item.id));
1210712107
1210812108 if (playPauseBtn) {
12109- playPauseBtn.addEventListener('click', ((e) => {
12109+ playPauseBtn.setAttribute('data-action', 'play-pause'); // ✅ Das fehlt noch!
12110+ playPauseBtn.addEventListener('click', (e) => {
1211012111 e.preventDefault();
1211112112 e.stopPropagation();
12112- this.handleQuickAction('play-pause', item);
12113- }).bind(this)) ;
12114- }
12113+ this.handleQuickAction(item, playPauseBtn); // ✅ Richtige Reihenfolge!
12114+ });
12115+ }
1211512116
1211612117 if (nextBtn) nextBtn.addEventListener('click', () => this.callMusicAssistantService('media_next_track', item.id));
1211712118
You can’t perform that action at this time.
0 commit comments