Skip to content

Commit

Permalink
Disabled acknowledge/remove button for engaged alerts (#8795)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed Nov 12, 2024
1 parent 35e0a4d commit b59e2d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions http_src/vue/page-alert-stats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,15 @@ const map_table_def_columns = async (columns) => {
}
return current_class;
}
} else if (b.id == "acknowledge" || b.id == "remove") {
/* Engaged alerts have no acknowledge nor remove */
b.f_map_class = (current_class, row) => {
current_class = current_class.filter((class_item) => class_item != "link-disabled");
if (row.is_engaged) {
current_class.push("link-disabled");
}
return current_class;
}
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion httpdocs/dist
Submodule dist updated 1 files
+2 −2 ntopng.js

0 comments on commit b59e2d5

Please sign in to comment.