Fix add folder to collections being broken when logged in (#1299)

* Moved add folder modal logic out

* Pass around folder paths for collections to fix folder not applying on
logged in users

* Remove unwanted use of folder value for addFolder store mutation

Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
Andrew Bastin
2020-10-25 21:14:59 -04:00
committed by GitHub
parent f9ae242792
commit dc98ef8b57
5 changed files with 39 additions and 20 deletions

View File

@@ -32,7 +32,7 @@
<div>
<button
class="icon"
@click="$emit('add-folder', { folder: collection })"
@click="$emit('add-folder', { folder: collection, path: `${collectionIndex}` })"
v-close-popover
>
<i class="material-icons">create_new_folder</i>
@@ -66,6 +66,7 @@
<folder
:folder="folder"
:folder-index="index"
:folder-path="`${collectionIndex}/${index}`"
:collection-index="collectionIndex"
:doc="doc"
:isFiltered="isFiltered"