Added edit folder.

This commit is contained in:
Keith Holliday
2019-10-16 07:32:22 -06:00
parent ed53b433b5
commit d989da2811
4 changed files with 53 additions and 5 deletions

View File

@@ -4,6 +4,7 @@
<i @click="toggleShowChildren" v-show='!showChildren' class="material-icons">arrow_right</i>
<i @click="toggleShowChildren" v-show='showChildren' class="material-icons">arrow_drop_down</i>
<div @click="toggleShowChildren">{{folder.name}}</div>
<button class="add-button" @click="editFolder">e</button>
<button class="add-button" @click="removeFolder">x</button>
</div>
@@ -72,6 +73,13 @@ export default {
folderIndex: this.folderIndex,
});
},
editFolder() {
this.$emit('edit-folder', {
collectionIndex: this.collectionIndex,
folderIndex: this.folderIndex,
folder: this.folder,
});
},
}
};
</script>