-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix space member panel issues #8300
Conversation
@@ -219,6 +220,9 @@ export default defineComponent({ | |||
this.isSharedWithOthersLocation || | |||
this.isSharedViaLinkLocation | |||
) | |||
}, | |||
spaceResource() { | |||
return this.spaces.find((s) => s.id === this.highlightedFile.id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again it makes it so much more complicated that the sidebar sometimes uses the highlightedFile
for showing and mutating resources, sometimes we use the provided displayedItem
, and now sometimes the spaceResource
. It would be so nice to have that reduced to one provided prop (either via provide
or via props
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fully agree 😕 I'm in favour of provide/inject
for the data context of the sidebar. With props it'd be a pretty heavy cascade in some cases.
@@ -88,8 +88,10 @@ const mutations = { | |||
state.spaceMembers = members | |||
}, | |||
UPSERT_SPACE_MEMBERS(state, member) { | |||
// group shares don't have the name prop... distinguish by shareType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Distinction by shareType
would be ideal, but I don't know if we need the server to adjust as well. Because the server currently handles space user- and group-shares via the same shareType
: 7
.
Results for acceptance oCIS https://drone.owncloud.com/owncloud/web/32033/69/1 💥 The oCISSharingPublic2 tests pipeline failed. The build has been cancelled. |
74b1dc2
to
aa4e094
Compare
Kudos, SonarCloud Quality Gate passed! |
Description
Related Issue
Types of changes