mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
debounce category switch
This commit is contained in:
committed by
Aiden McClelland
parent
f05770ee7f
commit
4405792beb
@@ -9,6 +9,7 @@ import { ErrorToastService } from 'src/app/services/error-toast.service'
|
|||||||
import { MarketplaceService } from '../marketplace.service'
|
import { MarketplaceService } from '../marketplace.service'
|
||||||
import { ApiService } from 'src/app/services/api/embassy-api.service'
|
import { ApiService } from 'src/app/services/api/embassy-api.service'
|
||||||
import { PatchDbService } from 'src/app/services/patch-db/patch-db.service'
|
import { PatchDbService } from 'src/app/services/patch-db/patch-db.service'
|
||||||
|
import { debounce } from 'src/app/util/misc.util'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'marketplace-list',
|
selector: 'marketplace-list',
|
||||||
@@ -107,6 +108,7 @@ export class MarketplaceListPage {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@debounce(1000)
|
||||||
private async getPkgs (doInfinite = false): Promise<void> {
|
private async getPkgs (doInfinite = false): Promise<void> {
|
||||||
try {
|
try {
|
||||||
if (this.category === 'updates') {
|
if (this.category === 'updates') {
|
||||||
|
|||||||
Reference in New Issue
Block a user