mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
Transfer Content Ownership To Team Folder Owner
This commit is contained in:
@@ -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: {
|
||||
|
||||
2
resources/js/helpers/itemHelpers.js
vendored
2
resources/js/helpers/itemHelpers.js
vendored
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user