You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/06/14 01:00:10 UTC

[cloudstack-primate] branch master updated: config: don't show egress, ip address tab for VPC network

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new 097a405  config: don't show egress, ip address tab for VPC network
097a405 is described below

commit 097a405e92afb28761dcf100a682696761493e3f
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Sun Jun 14 06:29:25 2020 +0530

    config: don't show egress, ip address tab for VPC network
    
    Fixes #391
    
    Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
 src/config/section/network.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/config/section/network.js b/src/config/section/network.js
index 1ca76cd..0efcdeb 100644
--- a/src/config/section/network.js
+++ b/src/config/section/network.js
@@ -41,11 +41,11 @@ export default {
       }, {
         name: 'egress.rules',
         component: () => import('@/views/network/EgressRulesTab.vue'),
-        show: (record) => { return record.type === 'Isolated' && 'listEgressFirewallRules' in store.getters.apis }
+        show: (record) => { return record.type === 'Isolated' && !('vpcid' in record) && 'listEgressFirewallRules' in store.getters.apis }
       }, {
         name: 'public.ip.addresses',
         component: () => import('@/views/network/IpAddressesTab.vue'),
-        show: (record) => { return record.type === 'Isolated' && 'listPublicIpAddresses' in store.getters.apis }
+        show: (record) => { return record.type === 'Isolated' && !('vpcid' in record) && 'listPublicIpAddresses' in store.getters.apis }
       }, {
         name: 'virtual.routers',
         component: () => import('@/views/network/RoutersTab.vue'),