-
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
Move sharing indicators into own component and add extension point #2928
Conversation
apps/files/src/components/FilesLists/StatusIndicators/StatusIndicators.vue
Outdated
Show resolved
Hide resolved
a0f68f3
to
2f4bfff
Compare
Tests are still failing, will investigate more and there is one error in console regarding vuex mutations which I'm digging deeper in now. I think you can do a "first round" of the review though @PVince81 |
Seems that the error is coming from within the extension when the item prop is used. Not yet sure why. Continuing 🔎 |
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.
See comments.
Can you also extend "apps/files/docs/extensionpoints.adoc" and put a quick example code there to illustrate how a custom indicator implementation looks like ?
From reading the code I could only briefly infer that the custom indicators are separate vue components but am not clear how the code would look like.
apps/files/src/components/FilesLists/StatusIndicators/DefaultIndicators.vue
Show resolved
Hide resolved
apps/files/src/components/FilesLists/StatusIndicators/DefaultIndicators.vue
Show resolved
Hide resolved
apps/files/src/components/FilesLists/StatusIndicators/StatusIndicators.vue
Show resolved
Hide resolved
I completely missed that we have such a file until now 🙈 |
5f4b760
to
a354a02
Compare
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.
Code looks good but example is not self-explanatory enough at first glance
ca62893
to
ceabe83
Compare
@PVince81 Adjusted. Ready for another round |
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.
See further comments, it's better but still missing some clarity
ceabe83
to
dd32294
Compare
Moved to smaller components Load custom indicators as part of extension Added click handler Use parentPath and add docs Added missing sharesTree getter Extended docs Added props
dd32294
to
a57ae75
Compare
@PVince81 Component and its references renamed. |
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.
Looks great now, thanks a lot! 👍
Description
Move sharing indicators into smaller components, enable disabling of default indicators and add extension point for new indicators.
Related Issue
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: