Show sub-folders first instead of requests

This commit is contained in:
Farhan Tariq
2021-03-21 19:49:03 +05:00
parent e565f9bf72
commit 8a5402932c

View File

@@ -52,23 +52,6 @@
</v-popover>
</div>
<div v-show="showChildren || isFiltered">
<ul class="flex-col">
<li
v-for="(request, index) in folder.requests"
:key="index"
class="flex ml-8 border-l border-brdColor"
>
<CollectionsRequest
:request="request"
:collection-index="collectionIndex"
:folder-index="folderIndex"
:folder-name="folder.name"
:request-index="index"
:doc="doc"
@edit-request="$emit('edit-request', $event)"
/>
</li>
</ul>
<ul v-if="folder.folders && folder.folders.length" class="flex-col">
<li
v-for="(subFolder, subFolderIndex) in folder.folders"
@@ -87,6 +70,23 @@
/>
</li>
</ul>
<ul class="flex-col">
<li
v-for="(request, index) in folder.requests"
:key="index"
class="flex ml-8 border-l border-brdColor"
>
<CollectionsRequest
:request="request"
:collection-index="collectionIndex"
:folder-index="folderIndex"
:folder-name="folder.name"
:request-index="index"
:doc="doc"
@edit-request="$emit('edit-request', $event)"
/>
</li>
</ul>
<ul
v-if="
folder.folders &&