|
|
@ -218,6 +218,15 @@ export default {
|
|
|
|
selectedMonitorCount() {
|
|
|
|
selectedMonitorCount() {
|
|
|
|
return Object.keys(this.selectedMonitors).length;
|
|
|
|
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: {
|
|
|
|
watch: {
|
|
|
|
searchText() {
|
|
|
|
searchText() {
|
|
|
@ -250,15 +259,6 @@ export default {
|
|
|
|
this.selectedMonitors = {};
|
|
|
|
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() {
|
|
|
|
mounted() {
|
|
|
|
window.addEventListener("scroll", this.onScroll);
|
|
|
|
window.addEventListener("scroll", this.onScroll);
|
|
|
|