minor changes/fixes
This commit is contained in:
1 parent
04965e9123
commit
21aaead02a
7 files changed
+23
-7
No files matched your search
@@ -46,7 +46,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<app-dynamic-entry-list [entries]="entries"></app-dynamic-entry-list>
|
||||
<app-dynamic-entry-list [entries]="entries" (onEntryUpdate)="entryUpdated($event)"></app-dynamic-entry-list>
|
||||
|
||||
<!-- Pagination -->
|
||||
<div class="pagination-container d-flex justify-content-end" *ngIf="maxPage > 1">
|
||||
|
||||
@@ -85,6 +85,11 @@ export class SearchComponent implements OnInit {
|
||||
// this.doSearch(this.searchInput);
|
||||
// }
|
||||
|
||||
// ? EVENT CATCHER
|
||||
entryUpdated(event: Event) {
|
||||
|
||||
}
|
||||
|
||||
// ? FUNCTIONS
|
||||
doSearch(keyword: string) {
|
||||
keyword = keyword.toLowerCase().trim();
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user