Merged in bugfix/PMCORE-2702 (pull request #7738)

PMCORE-2702

Approved-by: Rodrigo Quelca <rockoinfo@yahoo.com>
This commit is contained in:
Henry Jonathan Quispe Quispe
2021-01-14 17:01:57 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 27 additions and 12 deletions

View File

@@ -431,18 +431,21 @@ export default {
},
};
_.forEach(response, (v) => {
data.push({
title: v.title,
counter: v.counter,
item: v.id,
icon: info[v.id].icon,
onClick: (obj) => {
that.title = obj.title;
that.filterHeader = obj.item;
that.$refs["vueTable"].getData();
},
class: info[v.id].class,
});
//Hack for display the SUPERVISING CARD
if(!(v.id === "SUPERVISING" && v.counter === 0)){
data.push({
title: v.title,
counter: v.counter,
item: v.id,
icon: info[v.id].icon,
onClick: (obj) => {
that.title = obj.title;
that.filterHeader = obj.item;
that.$refs["vueTable"].getData();
},
class: info[v.id].class
});
}
});
return data;
},