mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
Removed dead code from category admin
This commit is contained in:
parent
22679920d0
commit
93b95b9eca
1 changed files with 1 additions and 8 deletions
|
@ -51,12 +51,6 @@ export default Component.extend(ModalMixin, TooltipMixin, {
|
|||
// get summary of documents and users for each category in space
|
||||
this.get('categorySvc').getSummary(this.get('folder.id')).then((s) => {
|
||||
c.forEach((cat) => {
|
||||
// let docs = _.findWhere(s, {categoryId: cat.get('id'), type: 'documents'});
|
||||
// let docCount = is.not.undefined(docs) ? docs.count : 0;
|
||||
|
||||
// let users = _.findWhere(s, {categoryId: cat.get('id'), type: 'users'});
|
||||
// let userCount = is.not.undefined(users) ? users.count : 0;
|
||||
|
||||
let docs = _.where(s, {categoryId: cat.get('id'), type: 'documents'});
|
||||
let docCount = 0;
|
||||
docs.forEach((d) => { docCount = docCount + d.count });
|
||||
|
@ -188,8 +182,7 @@ export default Component.extend(ModalMixin, TooltipMixin, {
|
|||
let c = categoryPermissions.findBy('whoId', perm.get('whoId'));
|
||||
if (is.not.undefined(c)) {
|
||||
c.set('selected', true);
|
||||
}
|
||||
console.log(perm.get('whoId'));
|
||||
}
|
||||
});
|
||||
|
||||
this.set('categoryPermissions', categoryPermissions.sortBy('who', 'name'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue