Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 05F63200C05 for ; Mon, 9 Jan 2017 04:15:22 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0482E160B45; Mon, 9 Jan 2017 03:15:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 453FB160B36 for ; Mon, 9 Jan 2017 04:15:21 +0100 (CET) Received: (qmail 47919 invoked by uid 500); 9 Jan 2017 03:15:20 -0000 Mailing-List: contact issues-help@eagle.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@eagle.apache.org Delivered-To: mailing list issues@eagle.apache.org Received: (qmail 47910 invoked by uid 99); 9 Jan 2017 03:15:20 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2017 03:15:20 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 54F3DDFA22; Mon, 9 Jan 2017 03:15:20 +0000 (UTC) From: r7raul1984 To: issues@eagle.apache.org Reply-To: issues@eagle.apache.org References: In-Reply-To: Subject: [GitHub] eagle pull request #765: [EAGLE-851] Add validation for policy name Content-Type: text/plain Message-Id: <20170109031520.54F3DDFA22@git1-us-west.apache.org> Date: Mon, 9 Jan 2017 03:15:20 +0000 (UTC) archived-at: Mon, 09 Jan 2017 03:15:22 -0000 Github user r7raul1984 commented on a diff in the pull request: https://github.com/apache/eagle/pull/765#discussion_r95098715 --- Diff: eagle-server/src/main/webapp/app/dev/public/js/ctrls/alertEditCtrl.js --- @@ -304,6 +304,15 @@ return false; }; + + $scope.checkPolicyName = function () { + if($scope.policy.name.length > 50) { + return "length should less than 50"; --- End diff -- This message will combine with "Name". Finally, user will see the message "Name length should less than 50". --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---