issue fixing

This commit is contained in:
Čarodej
2021-10-25 09:53:24 +02:00
parent 018b973c0f
commit 3f93373f60
16 changed files with 68 additions and 33 deletions
@@ -141,7 +141,7 @@
'user',
]),
canEdit() {
if (this.currentTeamFolder && this.user) {
if (this.currentTeamFolder && this.user && this.clipboard[0]) {
let member = this.currentTeamFolder.data.relationships.members.data.find(member => member.data.id === this.user.data.id)
return member.data.attributes.permission === 'can-edit'
@@ -1,7 +1,7 @@
<template>
<div class="empty-message">
<div class="message">
<eye-off-icon v-if="icon === 'eye-off'" size="36" class="icon"></eye-off-icon>
<div class="message text-center">
<eye-off-icon v-if="icon === 'eye-off'" size="36" class="icon" />
<p>{{ message }}</p>
</div>
</div>
@@ -41,6 +41,8 @@
}
.icon {
display: inline-block;
path, line, polyline, rect, circle {
stroke: $text;
}
@@ -66,7 +66,7 @@
</div>
</ListInfoItem>
<!--Location-->
<!--Team-->
<ListInfoItem
v-if="singleFile.data.attributes.isTeamFolder"
:title="$t('Shared with the Team')"
@@ -164,6 +164,7 @@
},
canShowAuthor() {
return this.$isThisRoute(this.$route, ['SharedWithMe', 'TeamFolders'])
&& this.clipboard[0].data.type !== 'folder'
&& this.user.data.id !== this.clipboard[0].data.relationships.user.data.id
},
},