-
Notifications
You must be signed in to change notification settings - Fork 24
feat: folder editor apps #1817
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: folder editor apps #1817
Conversation
| mimeType: resource.props[DavProperty.MimeType], | ||
| name, | ||
| extension: isFolder ? '' : extension, | ||
| extension, |
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.
we also need the extension for folders so that we can register editor apps on folder extensions (since all folders have the same mimetype).
| const menuItemsContext = computed(() => { | ||
| return [...unref(navigateActions), ...unref(defaultEditorActions)] | ||
| return unref(openWithDefaultActions) |
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.
navigate is no longer treated as a system action, but is part of the possible default actions on a file (not so much) or folder (yep).
| export * from './useFileActionsCopy' | ||
| export * from './useFileActionsCopyPermanentLink' | ||
| export * from './useFileActionsDisableSync' | ||
| export * from './useFileActionsCreateLink' |
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.
re-ordered the exports lexicographically so that it's harder for you to spot the new one 😇
1280343 to
bc7eb36
Compare
242aa90 to
3b48960
Compare
JammingBen
left a 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.
Awesome! 🚀
Description
This PR brings a set of changes to be able to register editor apps on folders.
Required for opencloud-eu/web-extensions#327
I decided to clean up the signature of
useFileActions, because it was rather confusing. This is breaking.Types of changes