Merge pull request #35849 from nextcloud/backport/35836/stable24

[stable24] fix: remove other shares from ui when deleted
This commit is contained in:
Julius Härtl 2023-01-02 17:18:35 +01:00 committed by GitHub
commit 6aae233f56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 4 deletions

View file

@ -38,7 +38,8 @@
<SharingEntryInherited v-for="share in shares"
:key="share.id"
:file-info="fileInfo"
:share="share" />
:share="share"
@remove:share="removeShare" />
</ul>
</template>
@ -149,6 +150,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>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long