diff --git a/static/assets/js/dropdowns.js b/static/assets/js/dropdowns.js index a5e4f574..0b2d44df 100644 --- a/static/assets/js/dropdowns.js +++ b/static/assets/js/dropdowns.js @@ -72,6 +72,12 @@ const TreeList = { console.log(`SELECTED TREE ITEMS: ${val}`) } }, +<<<<<<< Updated upstream +======= + // mounted() { + // if (this.allSelected) this.selectAllItems(this.itemsListTree); + // }, +>>>>>>> Stashed changes methods: { selectAllItems(values) { values.forEach(value => { @@ -97,6 +103,20 @@ const TreeList = { if(type === 'group' && !e.target.checked && e.target.checked !== undefined) { console.log(e) } + + + // if(!relatedId) { + // this.selectedItems.push(item.id) + // } + // console.log(relatedId, item, e); + + // if (!e.target.checked && e.target.checked !== undefined) { + // this.selectedItems = this.selectedItems + // .filter(v => !this.selectRelatedItems(item).includes(v)) + // .filter(v => v !== item.id) + // } else if (e.target.checked) { + // this.selectedItems = [...this.selectedItems, ...this.selectRelatedItems(item), item.id]; + // } } }, template: ` @@ -131,6 +151,18 @@ const TreeList = { > +

+

+

+<<<<<<< Updated upstream +======= + + + + + + + + + + + + + + +>>>>>>> Stashed changes

+<<<<<<< Updated upstream +======= + + + + + + + + + + + + + + +>>>>>>> Stashed changes
@@ -337,6 +404,7 @@ const ComplexListFilter = {