Skip to content

Commit

Permalink
uncommented code
Browse files Browse the repository at this point in the history
  • Loading branch information
linkodm1 committed Aug 13, 2024
1 parent b702ea5 commit 02fc6e9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions anms-ui/public/app/components/management/agents/reports.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default {
this.loading = true;
this.tableHeaders = [];
this.tableItems = [];
// if (this.reports[this.selected] == undefined) {
if (this.reports[this.selected] == undefined) {
this.loading = true;
let rpt_name = this.rptts[this.selected].name;
let rpt_adm = this.rptts[this.selected].adm;
Expand All @@ -67,18 +67,17 @@ export default {
console.error("reports error", error);
console.info("error obj:", error);
});
// } else{
// this.tableHeaders = this.reportsHeader[this.selected];
// this.tableItems = this.reports[this.selected];
// }
} else{
this.tableHeaders = this.reportsHeader[this.selected];
this.tableItems = this.reports[this.selected];
}
this.loading = false;
},
processReport(report) {
let holdHeader = report.shift();
this.tableHeaders = [];
for (let i = 0; i < holdHeader.length; i++) {
// this.tableHeaders.push({"key":holdHeader[i], "sortable":true});
this.tableHeaders.push({"key":holdHeader[i]});
}
for (let item of report) {
Expand Down

0 comments on commit 02fc6e9

Please sign in to comment.