AMBARI-16633. 'Download CSV' button in Add Service Wizard is not performing any action (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/0a0009a9 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0a0009a9 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0a0009a9 Branch: refs/heads/trunk Commit: 0a0009a97defb12db9d9a5c75bc73388154bfd7f Parents: 270a809 Author: Alex Antonenko <[email protected]> Authored: Thu May 12 13:05:35 2016 +0300 Committer: Alex Antonenko <[email protected]> Committed: Thu May 12 14:29:36 2016 +0300 ---------------------------------------------------------------------- ambari-web/app/controllers/wizard/step8_controller.js | 4 ++++ ambari-web/app/templates/wizard/step8.hbs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/0a0009a9/ambari-web/app/controllers/wizard/step8_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step8_controller.js b/ambari-web/app/controllers/wizard/step8_controller.js index ee98bf5..c0356a0 100644 --- a/ambari-web/app/controllers/wizard/step8_controller.js +++ b/ambari-web/app/controllers/wizard/step8_controller.js @@ -1744,5 +1744,9 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz }) }); + }, + + downloadCSV: function() { + App.router.get('kerberosWizardStep5Controller').getCSVData(false); } }); http://git-wip-us.apache.org/repos/asf/ambari/blob/0a0009a9/ambari-web/app/templates/wizard/step8.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/wizard/step8.hbs b/ambari-web/app/templates/wizard/step8.hbs index f19e020..856ddeb 100644 --- a/ambari-web/app/templates/wizard/step8.hbs +++ b/ambari-web/app/templates/wizard/step8.hbs @@ -82,6 +82,6 @@ <a class="btn btn-success pull-right" id="spinner" {{bindAttr disabled="controller.isSubmitDisabled"}} {{action submit target="controller"}}>{{t common.deploy}} →</a> <a class="btn btn-info pull-right" {{action printReview target="view"}}>{{t common.print}}</a> - <a {{bindAttr class=":btn :btn-primary :pull-right :mrm controller.showDownloadCsv::hide"}} {{action downloadCSV target="App.router.kerberosWizardStep5Controller"}}>{{t admin.kerberos.wizard.step5.downloadCSV}}</a> + <a {{bindAttr class=":btn :btn-primary :pull-right :mrm controller.showDownloadCsv::hide"}} {{action downloadCSV target="controller"}}>{{t admin.kerberos.wizard.step5.downloadCSV}}</a> </div> </div>
