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 plugin upload link to plugin admin #11630
Conversation
@@ -25,6 +25,23 @@ | |||
|
|||
var uninstallConfirmMessage = ''; | |||
|
|||
$('.uploadPlugin').click(function (event) { |
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.
As this code is duplicated in plugins/Marketplace/angularjs/marketplace/marketplace.directive.js - could we refactor it in the new plugins/Marketplace/templates/uploadPluginDialog.twig ?
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 could maybe move that stuff into a new uploadPluginForm directive. Having the javascript directly in the template doesn't sound good to me.
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.
If easy to do then +1. Otherwise we can just add a comment in both files to note that the code is duplicated in the other file
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.
Already done ;)
Works 👍 just left a minor comment |
Moved the js into a new angular directive |
fixes #11494