mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
disabled moving and deleting folders from root of TeamFolders
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
<ListInfoItem :title="$t('created_at')" :content="singleFile.data.attributes.created_at" />
|
||||
|
||||
<!--Location-->
|
||||
<ListInfoItem v-if="$checkPermission(['master'])" :title="$t('where')">
|
||||
<ListInfoItem v-if="$checkPermission(['master']) && !isTeamsHomepage" :title="$t('where')">
|
||||
<div @click="$moveFileOrFolder(singleFile)" class="flex cursor-pointer items-center">
|
||||
<b class="inline-block text-sm font-bold">
|
||||
{{
|
||||
@@ -163,6 +163,9 @@ import { mapGetters } from 'vuex'
|
||||
this.user.data.id !== this.clipboard[0].data.relationships.creator.data.id
|
||||
)
|
||||
},
|
||||
isTeamsHomepage() {
|
||||
return this.$isThisRoute(this.$route, ['TeamFolders', 'SharedWithMe']) && !this.$route.params.id
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user