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

Add plugin upload link to plugin admin #11630

Merged
merged 6 commits into from May 8, 2017
Merged

Add plugin upload link to plugin admin #11630

merged 6 commits into from May 8, 2017

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Apr 19, 2017

fixes #11494

@sgiehl sgiehl added this to the 3.0.4 milestone Apr 19, 2017
@sgiehl sgiehl added Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. labels Apr 19, 2017
@sgiehl sgiehl requested a review from mattab April 19, 2017 19:03
@@ -25,6 +25,23 @@

var uninstallConfirmMessage = '';

$('.uploadPlugin').click(function (event) {
Copy link
Member

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 ?

Copy link
Member Author

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.

Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already done ;)

@mattab
Copy link
Member

mattab commented May 8, 2017

Works 👍 just left a minor comment

@sgiehl
Copy link
Member Author

sgiehl commented May 8, 2017

Moved the js into a new angular directive

@mattab mattab merged commit abd2e52 into 3.x-dev May 8, 2017
@sgiehl sgiehl deleted the plugininstall branch May 8, 2017 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Piwik Marketplace (upload Plugin) not possible without internet
2 participants