Transfer Content Ownership To Team Folder Owner

This commit is contained in:
Čarodej
2021-11-04 17:37:25 +01:00
parent 8d8fdbf9ba
commit d600ee7830
9 changed files with 189 additions and 14 deletions

View File

@@ -37,8 +37,8 @@
:title="$t('Author')"
>
<div class="flex items-center mt-1">
<MemberAvatar :size="32" :member="singleFile.data.relationships.user" />
<span class="ml-2 block">{{ singleFile.data.relationships.user.data.attributes.name }}</span>
<MemberAvatar :size="32" :member="singleFile.data.relationships.owner" />
<span class="ml-2 block">{{ singleFile.data.relationships.owner.data.attributes.name }}</span>
</div>
</ListInfoItem>
@@ -165,7 +165,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
&& this.user.data.id !== this.clipboard[0].data.relationships.owner.data.id
},
},
methods: {

View File

@@ -48,7 +48,7 @@ const itemHelpers = {
Vue.prototype.$detachMeFromTeamFolder = function (folder) {
events.$emit('confirm:open', {
title: this.$t('Are you sure you want to leave this team?'),
message: this.$t('You will not have access to the files in this team folder.'),
message: this.$t("You will don't have access to the files and all your previously uploaded content will be part of this Team Folder you are leaving."),
action: {
id: folder.data.id,
operation: 'leave-team-folder',