Merge pull request #2696 from nasa/marking-improvement-tables

An improvement for components using telemetry tables
This commit is contained in:
Nikhil 2020-02-27 17:20:08 -08:00 committed by GitHub
commit 35d1727dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -346,6 +346,13 @@ export default {
return style; return style;
} }
}, },
watch: {
markedRows: {
handler(newVal, oldVal) {
this.$emit('marked-rows-updated', newVal, oldVal);
}
}
},
created() { created() {
this.filterChanged = _.debounce(this.filterChanged, 500); this.filterChanged = _.debounce(this.filterChanged, 500);
}, },
@ -779,6 +786,7 @@ export default {
} }
}, },
checkForMarkedRows() { checkForMarkedRows() {
this.isShowingMarkedRowsOnly = false;
this.markedRows = this.table.filteredRows.getRows().filter(row => row.marked); this.markedRows = this.table.filteredRows.getRows().filter(row => row.marked);
}, },
showRows(rows) { showRows(rows) {