mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-23 10:55:07 +00:00
[Library] Add Infinite Scrolling
Add infinite scrolling and fix selecting rows
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Injectable } from '@angular/core'
|
||||
import { ChartData } from 'src-shared/interfaces/search.interface'
|
||||
|
||||
import { ChartData, LibrarySearch } from 'src-shared/interfaces/search.interface'
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
@@ -17,8 +18,14 @@ export class StorageService {
|
||||
return window.electron.invoke.removeCharts(charts)
|
||||
}
|
||||
|
||||
async getChartsBySearchTerm(searchTerm?: string): Promise<ChartData[]> {
|
||||
return window.electron.invoke.getChartsBySearchTerm(searchTerm)
|
||||
async getChartsBySearchTerm(searchTerm?: string, page?: number, pageSize?: number): Promise<ChartData[]> {
|
||||
const librarySearch = {
|
||||
searchTerm: searchTerm,
|
||||
page: page,
|
||||
pageSize: pageSize,
|
||||
} as LibrarySearch
|
||||
|
||||
return window.electron.invoke.getChartsBySearchTerm(librarySearch)
|
||||
}
|
||||
|
||||
async removeAllCharts(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user