1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 22:29:41 +02:00

sticky form headers, category improvements, dropdown improvements

This commit is contained in:
Harvey Kandola 2017-10-11 16:05:24 -04:00
parent 785d12191e
commit 1e3f8e51f0
18 changed files with 787 additions and 686 deletions

View file

@ -155,25 +155,31 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, AuthMixin, {
filtered.pushObject(d);
}
});
this.set('spaceSelected', false);
this.set('uncategorizedSelected', false);
break;
case 'uncategorized':
this.set('uncategorizedSelected', true);
allowed = _.pluck(categoryMembers, 'documentId');
docs.forEach((d) => {
if (!_.contains(allowed, d.get('id'))) {
filtered.pushObject(d);
}
});
this.set('uncategorizedSelected', true);
this.set('spaceSelected', false);
break;
case 'space':
this.set('spaceSelected', true);
allowed = _.pluck(categoryMembers, 'documentId');
docs.forEach((d) => {
filtered.pushObject(d);
});
this.set('spaceSelected', true);
this.set('uncategorizedSelected', false);
break;
}