Repository: ambari Updated Branches: refs/heads/branch-2.5 3d74bf647 -> 4e41c83c7
AMBARI-19367.Not able to save FS action node after populating job xml value. (Venkata Sairam via gauravn7) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4e41c83c Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4e41c83c Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4e41c83c Branch: refs/heads/branch-2.5 Commit: 4e41c83c7165791a1cdee8eb29f16c0aed13b59e Parents: 3d74bf6 Author: Gaurav Nagar <[email protected]> Authored: Thu Jan 5 15:01:24 2017 +0530 Committer: Gaurav Nagar <[email protected]> Committed: Thu Jan 5 15:01:24 2017 +0530 ---------------------------------------------------------------------- contrib/views/wfmanager/.gitignore | 20 ++++++++++++++++++++ .../resources/ui/app/components/fs-action.js | 3 +++ 2 files changed, 23 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/4e41c83c/contrib/views/wfmanager/.gitignore ---------------------------------------------------------------------- diff --git a/contrib/views/wfmanager/.gitignore b/contrib/views/wfmanager/.gitignore new file mode 100644 index 0000000..ae354e7 --- /dev/null +++ b/contrib/views/wfmanager/.gitignore @@ -0,0 +1,20 @@ +# Numerous always-ignore extensions +*.swp +*.bak +*.log +*.patch + +# OS or Editor folders +.DS_Store + +# Installation and build tools +src/main/resources/ui/node/ +src/main/resources/ui/node_modules/ +src/main/resources/ui/bower_components/ +_generators/ + +# Output directory +src/main/resources/ui/dist/ + +# Brunch folder for temporary files. +src/main/resources/ui/tmp/ http://git-wip-us.apache.org/repos/asf/ambari/blob/4e41c83c/contrib/views/wfmanager/src/main/resources/ui/app/components/fs-action.js ---------------------------------------------------------------------- diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/fs-action.js b/contrib/views/wfmanager/src/main/resources/ui/app/components/fs-action.js index 6233b62..40ac43d 100644 --- a/contrib/views/wfmanager/src/main/resources/ui/app/components/fs-action.js +++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/fs-action.js @@ -38,6 +38,9 @@ export default Ember.Component.extend(Validations, { this.set("actionModel.configuration", {}); this.set("actionModel.configuration.property", Ember.A([])); } + if(this.get('actionModel.jobXml') === undefined){ + this.set("actionModel.jobXml", Ember.A([])); + } var field = 'validations.attrs.actionModel.fsOps.isInvalid'; this.set(field, false); this.sendAction('register', 'fsAction', this);
