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 fcd51fe  remove restart network button for L2 network (#686)
fcd51fe is described below

commit fcd51fed0b54bd23a888489f6207ea018bdb7da8
Author: Hoang Nguyen <[email protected]>
AuthorDate: Fri Sep 11 12:16:19 2020 +0200

    remove restart network button for L2 network (#686)
---
 src/config/section/network.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/config/section/network.js b/src/config/section/network.js
index fe213bd..c8053ec 100644
--- a/src/config/section/network.js
+++ b/src/config/section/network.js
@@ -81,7 +81,8 @@ export default {
           icon: 'sync',
           label: 'label.restart.network',
           dataView: true,
-          args: ['cleanup', 'makeredundant']
+          args: ['cleanup', 'makeredundant'],
+          show: (record) => record.type !== 'L2'
         },
         {
           api: 'replaceNetworkACLList',

Reply via email to