File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,10 +20,7 @@ function initGridstack() {
2020function 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}
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments