mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Added "dead" visualizations counter
This commit is contained in:
parent
1529cdebe0
commit
9d4d8520b7
@ -56,6 +56,8 @@ export class TabVisualizations {
|
||||
|
||||
this.tabVisualizations = {};
|
||||
this.currentTab = '';
|
||||
|
||||
this.deadVisualizations = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -63,6 +65,7 @@ export class TabVisualizations {
|
||||
* @param {Object} tab
|
||||
*/
|
||||
setTab(tab) {
|
||||
this.deadVisualizations = 0;
|
||||
this.currentTab = tab;
|
||||
}
|
||||
|
||||
@ -100,4 +103,12 @@ export class TabVisualizations {
|
||||
removeAll() {
|
||||
this.tabVisualizations = {};
|
||||
}
|
||||
|
||||
addDeadVis() {
|
||||
this.deadVisualizations += 1;
|
||||
}
|
||||
|
||||
getDeadVis() {
|
||||
return this.deadVisualizations;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user