Skip to content

Commit 2934979

Browse files
authored
Update fast-search-card.js
1 parent 1bcb3c3 commit 2934979

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dist/fast-search-card.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7881,6 +7881,15 @@ class FastSearchCard extends HTMLElement {
78817881
});
78827882

78837883
this.setupDetailTabs(item);
7884+
7885+
// NEU: Label Button Event Listener
7886+
const labelButton = this.shadowRoot.querySelector('.label-test-button');
7887+
if (labelButton) {
7888+
labelButton.addEventListener('click', (e) => {
7889+
const entityId = e.target.dataset.entityId;
7890+
this.addStarLabel(entityId);
7891+
});
7892+
}
78847893

78857894
const iconBackground = detailPanel.querySelector('.icon-background');
78867895
const titleArea = detailPanel.querySelector('.detail-title-area');
@@ -8143,7 +8152,7 @@ class FastSearchCard extends HTMLElement {
81438152
</div>
81448153

81458154
<!-- NEU: Label Button hinzufügen -->
8146-
<button class="label-test-button" onclick="this.addStarLabel('${item.id}')" title="Star Label hinzufügen">
8155+
<button class="label-test-button" data-entity-id="${item.id}" title="Star Label hinzufügen">
81478156
81488157
</button>
81498158

0 commit comments

Comments
 (0)