From 7c20909b11b165ca0ef9022b607497d9cc673321 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 25 Sep 2023 17:54:40 +0800 Subject: [PATCH] refactor(webui): remove commented code --- komga-webui/src/views/BrowseCollection.vue | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/komga-webui/src/views/BrowseCollection.vue b/komga-webui/src/views/BrowseCollection.vue index dd32db9b5b..05b98f90c1 100644 --- a/komga-webui/src/views/BrowseCollection.vue +++ b/komga-webui/src/views/BrowseCollection.vue @@ -440,9 +440,6 @@ export default Vue.extend({ this.setWatches() }, - // reloadSeries: throttle(function (this: any) { - // this.loadSeries(this.collectionId) - // }, 1000), async loadPage(collectionId: string, page: number) { this.selectedSeries = [] @@ -474,21 +471,6 @@ export default Vue.extend({ reloadPage: throttle(function (this: any) { this.loadPage(this.collectionId, this.page) }, 1000), - // async loadSeries(collectionId: string) { - // let authorsFilter = [] as AuthorDto[] - // authorRoles.forEach((role: string) => { - // if (role in this.filters) this.filters[role].forEach((name: string) => authorsFilter.push({ - // name: name, - // role: role, - // })) - // }) - // - // const complete = parseBooleanFilter(this.filters.complete) - // this.series = (await this.$komgaCollections.getSeries(collectionId, {unpaged: true} as PageRequest, this.filters.library, this.filters.status, replaceCompositeReadStatus(this.filters.readStatus), this.filters.genre, this.filters.tag, this.filters.language, this.filters.publisher, this.filters.ageRating, this.filters.releaseDate, authorsFilter, complete)).content - // this.series.forEach((x: SeriesDto) => x.context = {origin: ContextOrigin.COLLECTION, id: collectionId}) - // this.seriesCopy = [...this.series] - // this.selectedSeries = [] - // }, async loadCollection(collectionId: string) { this.$komgaCollections.getOneCollection(collectionId) .then(v => this.collection = v)