mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
fix: remove other shares from ui when deleted
Remove the share entry in question when unsharing a folder from within the `others with access` section of a file within that folder. Using the code from the ShareList view here as well. Just copying the code here as this is a bugfix that will need to be backported. Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
parent
ae9d9a262e
commit
2e53ca44a6
3 changed files with 15 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
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