refactor: separate folders for team and personal collections

This commit is contained in:
Liyas Thomas
2021-05-11 05:49:36 +00:00
committed by GitHub
parent 8a30d3ed42
commit 3bbf334f99
8 changed files with 432 additions and 506 deletions

View File

@@ -123,7 +123,7 @@
"
@unselect-collection="$emit('remove-collection', collection)"
@expand-collection="expandCollection"
@removve-collection="removeCollection"
@remove-collection="removeCollection"
/>
</li>
</ul>
@@ -269,6 +269,9 @@ export default {
document.addEventListener("keydown", this._keyListener.bind(this))
this.$subscribeTo(this.teamCollectionAdapter.collections$, (colls) => {
console.log("new tree!")
console.log(colls)
this.teamCollectionsNew = cloneDeep(colls)
})
},
@@ -550,8 +553,7 @@ export default {
console.log(collectionID)
this.teamCollectionAdapter.expandCollection(collectionID)
},
removeCollection(collectionsType, collectionIndex, collectionID) {
console.log("removing")
removeCollection({ collectionsType, collectionIndex, collectionID }) {
if (collectionsType.type == "my-collections") {
this.$store.commit("postwoman/removeCollection", {
collectionIndex: collectionIndex,