Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 53E8C10FE4 for ; Tue, 8 Sep 2015 10:31:51 +0000 (UTC) Received: (qmail 94737 invoked by uid 500); 8 Sep 2015 10:31:50 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 94691 invoked by uid 500); 8 Sep 2015 10:31:50 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 94678 invoked by uid 99); 8 Sep 2015 10:31:50 -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; Tue, 08 Sep 2015 10:31:50 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 16827DFAF1; Tue, 8 Sep 2015 10:31:50 +0000 (UTC) From: milamberspace To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: CLOUDSTACK-8821: UI Change Content-Type: text/plain Message-Id: <20150908103150.16827DFAF1@git1-us-west.apache.org> Date: Tue, 8 Sep 2015 10:31:50 +0000 (UTC) Github user milamberspace commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/786#discussion_r38911089 --- Diff: ui/scripts/network.js --- @@ -1612,6 +1613,36 @@ }); } }); + + if (!isConfigRulesMsgShown) { + isConfigRulesMsgShown = true; + $.ajax({ + url: createURL('listNetworkOfferings'), + data: { + id: args.context.networks[0].networkofferingid + }, + dataType: 'json', + async: true, + success: function(json) { + var response = json.listnetworkofferingsresponse.networkoffering ? + json.listnetworkofferingsresponse.networkoffering[0] : null; + + if (response != null) { + var egressdefaultpolicy; + + if (response.egressdefaultpolicy == true) { + egressdefaultpolicy = 'Block'; + } else { + egressdefaultpolicy = 'Allow'; + } + + cloudStack.dialog.notice({ + message: _l('Configure the rules to ' + egressdefaultpolicy + ' Traffic.') --- End diff -- Would be great if you can use a localization key from messages.properties (by adding the sentence inside) instead of hard code message to allow the localization of the web UI. Thanks --- 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. ---