Переглянути джерело

Merge pull request #35836 from nextcloud/fix/remove-other-share-when-deleted

fix: remove other shares from ui when deleted
tags/v26.0.0beta1
Julius Härtl 1 рік тому
джерело
коміт
f562fc716a
Аккаунт користувача з таким Email не знайдено

+ 12
- 1
apps/files_sharing/src/views/SharingInherited.vue Переглянути файл

@@ -41,7 +41,8 @@
<SharingEntryInherited v-for="share in shares"
:key="share.id"
:file-info="fileInfo"
:share="share" />
:share="share"
@remove:share="removeShare" />
</ul>
</template>

@@ -152,6 +153,16 @@ export default {
this.showInheritedShares = false
this.shares = []
},
/**
* Remove a share from the shares list
*
* @param {Share} share the share to remove
*/
removeShare(share) {
const index = this.shares.findIndex(item => item === share)
// eslint-disable-next-line vue/no-mutating-props
this.shares.splice(index, 1)
},
},
}
</script>

+ 2
- 2
dist/files_sharing-files_sharing_tab.js
Різницю між файлами не показано, бо вона завелика
Переглянути файл


+ 1
- 1
dist/files_sharing-files_sharing_tab.js.map
Різницю між файлами не показано, бо вона завелика
Переглянути файл


Завантаження…
Відмінити
Зберегти