You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ak...@apache.org on 2015/04/14 18:44:11 UTC

ambari git commit: AMBARI-10470. Alert Notifications : save button is disabled when creating alert notification. (akovalenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk b58024b78 -> 4ffe157cc


AMBARI-10470. Alert Notifications : save button is disabled when creating alert notification. (akovalenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4ffe157c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4ffe157c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4ffe157c

Branch: refs/heads/trunk
Commit: 4ffe157cc2a397809142542d1985203269bc209a
Parents: b58024b
Author: Aleksandr Kovalenko <ak...@hortonworks.com>
Authored: Tue Apr 14 19:19:08 2015 +0300
Committer: Aleksandr Kovalenko <ak...@hortonworks.com>
Committed: Tue Apr 14 19:19:08 2015 +0300

----------------------------------------------------------------------
 .../main/alerts/manage_alert_notifications_controller.js           | 2 +-
 .../main/alerts/manage_alert_notifications_controller_test.js      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4ffe157c/ambari-web/app/controllers/main/alerts/manage_alert_notifications_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/alerts/manage_alert_notifications_controller.js b/ambari-web/app/controllers/main/alerts/manage_alert_notifications_controller.js
index 2d56ec7..101df64 100644
--- a/ambari-web/app/controllers/main/alerts/manage_alert_notifications_controller.js
+++ b/ambari-web/app/controllers/main/alerts/manage_alert_notifications_controller.js
@@ -375,7 +375,7 @@ App.ManageAlertNotificationsController = Em.Controller.extend({
         clearValidationErrors: function () {
           var linkedErrorsMap = {
               EMAIL: ['emailToError', 'emailFromError', 'smtpPortError', 'passwordError'],
-              SNMP: ['portError']
+              SNMP: ['portError', 'hostError']
             },
             method = this.get('controller.inputFields.method.value');
           Em.keys(linkedErrorsMap).forEach(function (name) {

http://git-wip-us.apache.org/repos/asf/ambari/blob/4ffe157c/ambari-web/test/controllers/main/alerts/manage_alert_notifications_controller_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/controllers/main/alerts/manage_alert_notifications_controller_test.js b/ambari-web/test/controllers/main/alerts/manage_alert_notifications_controller_test.js
index 7159fed..7f68fce 100644
--- a/ambari-web/test/controllers/main/alerts/manage_alert_notifications_controller_test.js
+++ b/ambari-web/test/controllers/main/alerts/manage_alert_notifications_controller_test.js
@@ -650,7 +650,7 @@ describe('App.ManageAlertNotificationsController', function () {
         var cases = [
           {
             method: 'EMAIL',
-            errors: ['portError']
+            errors: ['portError', 'hostError']
           },
           {
             method: 'SNMP',