refactor: folder dtm

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/888/head
Varun Patil 2023-10-19 22:55:18 -07:00
parent b641d08651
commit d1f15240b7
1 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<FolderGrid v-if="folders.length && !$route.query.recursive" :items="folders" /> <FolderGrid v-if="show" :items="folders" />
</template> </template>
<script lang="ts"> <script lang="ts">
@ -29,6 +29,12 @@ export default defineComponent({
mixins: [UserMixin], mixins: [UserMixin],
computed: {
show() {
return this.folders.length && !this.$route.query.recursive;
},
},
methods: { methods: {
async refresh(): Promise<boolean> { async refresh(): Promise<boolean> {
const folder = utils.getFolderRoutePath(this.config.folders_path); const folder = utils.getFolderRoutePath(this.config.folders_path);