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:
parent
bae1245d47
commit
aee9345886
14 changed files with 141 additions and 207 deletions
|
@ -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'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue