From 23fdd32de056d6f30df97beaca92528eb919b1a0 Mon Sep 17 00:00:00 2001 From: Nelson Chan <3271800+chakflying@users.noreply.github.com> Date: Mon, 7 Aug 2023 15:10:03 +0800 Subject: [PATCH] Fix: filtersActive placed incorrectly (#3531) --- src/components/MonitorList.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/MonitorList.vue b/src/components/MonitorList.vue index b4ee58406..fd6fd1a4b 100644 --- a/src/components/MonitorList.vue +++ b/src/components/MonitorList.vue @@ -218,6 +218,15 @@ export default { selectedMonitorCount() { return Object.keys(this.selectedMonitors).length; }, + + /** + * Determines if any filters are active. + * + * @return {boolean} True if any filter is active, false otherwise. + */ + filtersActive() { + return this.filterState.status != null || this.filterState.active != null || this.filterState.tags != null || this.searchText !== ""; + } }, watch: { searchText() { @@ -250,15 +259,6 @@ export default { this.selectedMonitors = {}; } }, - - /** - * Determines if any filters are active. - * - * @return {boolean} True if any filter is active, false otherwise. - */ - filtersActive() { - return this.filterState.status != null || this.filterState.active != null || this.filterState.tags != null || this.searchText !== ""; - } }, mounted() { window.addEventListener("scroll", this.onScroll);