From 2cc1a06b4e85696099b4617e6185e4e6c32c6360 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sat, 19 Mar 2022 11:23:23 +0000 Subject: [PATCH] Reset table sort options --- public/js/plugin-download.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/plugin-download.js b/public/js/plugin-download.js index 7e13ded..2e9d0a0 100644 --- a/public/js/plugin-download.js +++ b/public/js/plugin-download.js @@ -82,6 +82,7 @@ const component = () => { searchChapters(query) { this.searching = true; this.allChapters = []; + this.sortOptions = []; this.chapters = undefined; this.listManga = false; fetch( @@ -356,6 +357,7 @@ const component = () => { applyFilters() { this.appliedFilters = this.filterSettings; this.chapters = this.filteredChapters; + this.sortOptions = []; }, clearFilters() { $("#filter-form input") @@ -364,6 +366,7 @@ const component = () => { $("#filter-form select").val("all"); this.appliedFilters = []; this.chapters = this.filteredChapters; + this.sortOptions = []; }, mangaSelected(event) { const mid = event.currentTarget.getAttribute("data-id");