mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
dashboard: firewall: add popover to event label as well
This commit is contained in:
parent
706f0ccd77
commit
ae2b376885
@ -137,6 +137,13 @@ export default class Firewall extends BaseTableWidget {
|
||||
]
|
||||
]);
|
||||
|
||||
super.updateTable('fw-rule-table', [
|
||||
[
|
||||
popover.html($(`<div style="text-align: left;">${this.counters[data.rid].label}</div>`)).prop('outerHTML'),
|
||||
this.counters[data.rid].count
|
||||
]
|
||||
], data.rid);
|
||||
|
||||
$('[data-toggle="popover"]').popover('hide');
|
||||
$('[data-toggle="popover"]').popover({
|
||||
container: 'body'
|
||||
@ -144,13 +151,6 @@ export default class Firewall extends BaseTableWidget {
|
||||
$(this).data("bs.popover").tip().css("max-width", "100%")
|
||||
});
|
||||
|
||||
super.updateTable('fw-rule-table', [
|
||||
[
|
||||
$('<div style="text-align: left;"></div>').text(this.counters[data.rid].label).prop('outerHTML'),
|
||||
this.counters[data.rid].count
|
||||
]
|
||||
], data.rid);
|
||||
|
||||
this._updateChart(data.rid, this.counters[data.rid].label, this.counters[data.rid].count);
|
||||
|
||||
if (Object.keys(this.counters).length < this.rotation) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user