minor changes/fixes

This commit is contained in:
X4Lo committed 2024-05-18 15:31:20 +01:00
1 parent 04965e9123
commit 21aaead02a
7 files changed
+23 -7

No files matched your search

@@ -121,7 +121,7 @@
<app-dynamic-entry-list [entries]="entriesToShow" (removedEvent)="entryRemoved($event)"></app-dynamic-entry-list>
<app-dynamic-entry-list [entries]="entriesToShow" (onEntryRemove)="entryRemoved($event)"></app-dynamic-entry-list>
<!-- Pagination -->
@@ -334,7 +334,7 @@ export class LibraryComponent implements OnInit, AfterViewInit {
return this.entries.filter((e) => e.hidden).length;
}
// ! events
// ! events catcher
entryRemoved(event: Event) {
this.entries = this.entries.filter(
(e) => e.id.toString() != event.toString()