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 49875200B48 for ; Mon, 18 Jul 2016 20:12:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4686B160A8F; Mon, 18 Jul 2016 18:12:39 +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 98ADB160A65 for ; Mon, 18 Jul 2016 20:12:38 +0200 (CEST) Received: (qmail 90274 invoked by uid 500); 18 Jul 2016 18:12:37 -0000 Mailing-List: contact commits-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 commits@cloudstack.apache.org Received: (qmail 90254 invoked by uid 99); 18 Jul 2016 18:12:37 -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, 18 Jul 2016 18:12:37 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 94827DFBAB; Mon, 18 Jul 2016 18:12:37 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: swill@apache.org To: commits@cloudstack.apache.org Date: Mon, 18 Jul 2016 18:12:38 -0000 Message-Id: <580cb744ac6245dd99fe99f184e098d1@git.apache.org> In-Reply-To: <12c4c31c60874a38ac98a94c996d3350@git.apache.org> References: <12c4c31c60874a38ac98a94c996d3350@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [02/13] git commit: updated refs/heads/master to 54039f9 archived-at: Mon, 18 Jul 2016 18:12:39 -0000 ui: show resize volume button to all users The resize volume is support on all major hypervisors (Xen, VMware, KVM). The hypervisor key is returned by the list volumes response only for admins but not for users or domain admin users. This removes the check, as the operation is supported on all major hypervisors that CloudStack supports. With this changes all users would see resize volume button in the UI. Signed-off-by: Rohit Yadav Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b68ae194 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b68ae194 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b68ae194 Branch: refs/heads/master Commit: b68ae1949e9fa5ae376a0ae7b67c3349b9e83418 Parents: 22c6b47 Author: Rohit Yadav Authored: Thu Jun 23 12:27:51 2016 +0530 Committer: Rohit Yadav Committed: Thu Jun 23 12:27:51 2016 +0530 ---------------------------------------------------------------------- ui/scripts/storage.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b68ae194/ui/scripts/storage.js ---------------------------------------------------------------------- diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index 29cd4c1..b26e60b 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -2365,10 +2365,8 @@ } } - if (jsonObj.hypervisor == "KVM" || jsonObj.hypervisor == "XenServer" || jsonObj.hypervisor == "VMware") { - if (jsonObj.state == "Ready" || jsonObj.state == "Allocated") { - allowedActions.push("resize"); - } + if (jsonObj.state == "Ready" || jsonObj.state == "Allocated") { + allowedActions.push("resize"); } if (jsonObj.state != "Allocated") {