Skip to content
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 provided / injected extension list of BaseReader #2662

Merged
merged 2 commits into from
Jul 4, 2022

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Jul 4, 2022

This PR replaces #2628 by @susnux in order to allow our compile bot to push to the PR branch.

Summary

BaseReader: Use a factory pattern for creating the extension list

Provide functions are neither called on the providing object nor
on the injecting object, so using this within provided functions
will refer to the global this for which $emit is not defined.
This uses a factory pattern so that this is bound to the injecting
object.

Also forwarding the click-link event is needed.

Provide functions are neither called on the providing object nor
on the injecting object, so using `this` within provided functions
will refer to the global `this` for which `$emit` is not defined.
This uses a factory pattern so that `this` is bound to the injecting
object.

Also forwarding the `click-link` event is needed.

Signed-off-by: Ferdinand Thiessen <[email protected]>
@mejo- mejo- added the bug Something isn't working label Jul 4, 2022
@mejo- mejo- requested a review from max-nextcloud July 4, 2022 07:52
@mejo-
Copy link
Member Author

mejo- commented Jul 4, 2022

/compile amend

@mejo- mejo- changed the title Fix/base reader injection Fix provided / injected extension list of BaseReader Jul 4, 2022
@mejo-
Copy link
Member Author

mejo- commented Jul 4, 2022

/backport to stable24

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@nextcloud-command nextcloud-command force-pushed the fix/base-reader-injection branch from 6c6d726 to 4655d76 Compare July 4, 2022 07:57
@mejo- mejo- merged commit a06e431 into master Jul 4, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix/base-reader-injection branch July 4, 2022 08:03
@backportbot-nextcloud
Copy link

The backport to stable24 failed. Please do this backport manually.

@susnux
Copy link
Contributor

susnux commented Jul 4, 2022

Thank you!

@max-nextcloud
Copy link
Collaborator

there's no point in backporting this to stable24. The code in question did not exist there as far as i can tell.

@susnux
Copy link
Contributor

susnux commented Jul 6, 2022

@max-nextcloud yes it was merged after 24.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants