-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat(files): add default action support and expose router #37824
Conversation
I'd highly prefer a simple wrapper around the Vue router. It potentially makes upgrades and the migration away from the Vue router easier. Todays fancy tech will be legacy one day. |
Signed-off-by: John Molakvoæ <[email protected]>
Signed-off-by: John Molakvoæ <[email protected]>
517f2fa
to
0a2a1b4
Compare
Done, the router is implemented, see first comment |
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 good
Docs needed for the new OCP.Files.Router API
Adds default action support
This means any default action not being bound to the file name click will be shown in the actions menu (so far there is none). But that means we could have
Open in Viewer
as default andOpen in Collabora
... etc in the menu 🚀Reference: nextcloud/viewer#2393
Expose vue router to allow external apps to change the route
Example:
Required for nextcloud/groupfolders#2326