Added "dead" visualizations counter

This commit is contained in:
Jesús Ángel 2019-08-30 14:18:55 +02:00
parent 1529cdebe0
commit 9d4d8520b7

View File

@ -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;
}
}