-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add official way to access $client of the file-picker #23
Comments
I was thinking about making |
Hmm, with the current approach peer dependencies are not going to work. As we want to be able to use the file-picker anywhere (that's why it is built as web component), we cannot depend on being able to install any deps. |
Maybe you could reconsider my initial thought? |
That could be a possible approach, yes. Not much other alternatives (that would be at least a bit nice) are coming to my mind now. |
The file-picker is incredible useful for integration with other apps, but currently the interaction with the underlying ownCloud is limited because the instance of the owncloud-sdk is not shared with apps that use the file-picker.
Currently the only workaround is to "steal" the instance by accessing Vue.prototype.$client. Maybe we can include an official way to retrieve the $client? For example we could include a new emitter that is called when the file-picker initially is finished with loading and sucessfully authorized itself against the ownCloud.
The text was updated successfully, but these errors were encountered: