1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 14:19:43 +02:00

move documents new UX

This commit is contained in:
Harvey Kandola 2017-11-22 16:28:17 +00:00
parent bae1245d47
commit aee9345886
14 changed files with 141 additions and 207 deletions

View file

@ -15,10 +15,19 @@ import Component from '@ember/component';
export default Component.extend({
nameField: 'category',
singleSelect: false,
items: [],
actions: {
onToggle(item) {
if (this.get('singleSelect')) {
let items = this.get('items');
items.forEach(item => {
set(item, 'selected', false);
});
this.set('items', items);
}
set(item, 'selected', !item.get('selected'));
}
}