[vue] Do not show detection status column when uniqueing
<pane>
<v-data-table
v-fill-height
- :headers="headers"
+ :headers="tableHeaders"
:items="formattedReports"
:options.sync="pagination"
:loading="loading"
@@ -171,6 +171,18 @@ export default {
cmpData: "getCmpData"
}),
+ tableHeaders() {
+ if (!this.headers) return;
+
+ return this.headers.filter(header => {
+ if (header.value === "detectionStatus") {
+ return !this.reportFilter.isUnique;
+ }
+
+ return true;
+ });
+ },
+
formattedReports() {
return this.reports.map(report => {
const detectionStatus =
