mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #40448 from nextcloud/manual/backport/stable27/40440
[stable27] Backport consider link shares in removeShare method in SharingTab #40440
This commit is contained in:
commit
5a22eb7016
3 changed files with 13 additions and 6 deletions
|
|
@ -356,9 +356,16 @@ export default {
|
|||
* @param {Share} share the share to remove
|
||||
*/
|
||||
removeShare(share) {
|
||||
const index = this.shares.findIndex(item => item.id === share.id)
|
||||
// eslint-disable-next-line vue/no-mutating-props
|
||||
this.shares.splice(index, 1)
|
||||
// Get reference for this.linkShares or this.shares
|
||||
const shareList
|
||||
= share.type === this.SHARE_TYPES.SHARE_TYPE_EMAIL
|
||||
|| share.type === this.SHARE_TYPES.SHARE_TYPE_LINK
|
||||
? this.linkShares
|
||||
: this.shares
|
||||
const index = shareList.findIndex(item => item.id === share.id)
|
||||
if (index !== -1) {
|
||||
shareList.splice(index, 1)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Await for next tick and render after the list updated
|
||||
|
|
|
|||
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue