Skip to content

Commit 353cb17

Browse files
author
jacquesbach
committed
Fixes
1 parent 6a105c4 commit 353cb17

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

static/js/layout.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ function initGridstack() {
2020
function injectDeleteButtons() {
2121
document.querySelectorAll('.grid-stack-item').forEach(item => {
2222

23-
if (!item.id) {
24-
console.warn("Grid Item ohne ID:", item);
25-
return;
26-
}
23+
if (!item.id || !ALL_CARDS.includes(item.id)) return;
2724

2825
if (item.querySelector('.card-delete-btn')) return;
2926

@@ -46,7 +43,7 @@ function injectDeleteButtons() {
4643
e.stopPropagation();
4744
removeCard(item.id);
4845
};
49-
46+
5047
item.appendChild(btn);
5148
});
5249
}

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h1>
103103
">
104104
<strong style="color: var(--text-dark);">Grid-Layout anpassen</strong>
105105
</div>
106-
<button class="btn-secondary" id="unlockBtn" onclick="resetDatabaseLayout()"> Grid-Layout zurücksetzen </button>
106+
<button class="btn-secondary" id="resetLayoutBtn" onclick="resetDatabaseLayout()"> Grid-Layout zurücksetzen </button>
107107
</div>
108108
</div>
109109
</div>

0 commit comments

Comments
 (0)