Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
  • Loading branch information
max-nextcloud committed Dec 22, 2022
commit be2121c64ba99d350bf5f37bebe5d9134d323b94
13 changes: 12 additions & 1 deletion apps/files_sharing/src/views/SharingInherited.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions dist/files_sharing-files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_sharing-files_sharing_tab.js.map

Large diffs are not rendered by default.