File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed
Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 18181818 <script type =" text/javascript" src =" scripts/ui-custom/securityRules.js" ></script >
18191819 <script type =" text/javascript" src =" scripts/ui-custom/vpc.js" ></script >
18201820 <script type =" text/javascript" src =" scripts/vpc.js" ></script >
1821- <script type =" text/javascript" src =" scripts/network.js" ></script >
18221821 <script type =" text/javascript" src =" scripts/ui-custom/recurringSnapshots.js" ></script >
18231822 <script type =" text/javascript" src =" scripts/ui-custom/uploadVolume.js" ></script >
18241823 <script type =" text/javascript" src =" scripts/storage.js" ></script >
18331832 <script type =" text/javascript" src =" scripts/ui-custom/physicalResources.js" ></script >
18341833 <script type =" text/javascript" src =" scripts/ui-custom/zoneWizard.js" ></script >
18351834 <script type =" text/javascript" src =" scripts/system.js" ></script >
1835+ <script type =" text/javascript" src =" scripts/network.js" ></script >
18361836 <script type =" text/javascript" src =" scripts/domains.js" ></script >
18371837 <script type =" text/javascript" src =" scripts/docs.js" ></script >
18381838 <script type =" text/javascript" src =" scripts/vm_snapshots.js" ></script >
Original file line number Diff line number Diff line change 11941194 hiddenTabs . push ( 'egressRules' ) ;
11951195 }
11961196
1197+ if ( ! isAdmin ( ) ) {
1198+ hiddenTabs . push ( "virtualRouters" ) ;
1199+ }
1200+
11971201 return hiddenTabs ;
11981202 } ,
11991203
18921896 }
18931897 } ) ;
18941898 }
1899+ } ,
1900+
1901+ virtualRouters : {
1902+ title : "label.virtual.appliances" ,
1903+ listView : cloudStack . sections . system . subsections . virtualRouters . sections . routerNoGroup . listView
18951904 }
18961905 }
18971906 }
57385747 tabFilter : function ( args ) {
57395748 var hiddenTabs = [ ] ;
57405749 var isRouterOwner = isAdmin ( ) ;
5741- if ( ! isRouterOwner )
5750+ if ( ! isRouterOwner ) {
57425751 hiddenTabs . push ( "router" ) ;
5752+ hiddenTabs . push ( "virtualRouters" ) ;
5753+ }
57435754 return hiddenTabs ;
57445755 } ,
57455756
59055916 }
59065917 } ) ;
59075918 }
5919+ } ,
5920+ virtualRouters : {
5921+ title : "label.virtual.routers" ,
5922+ listView : cloudStack . sections . system . subsections . virtualRouters . sections . routerNoGroup . listView
59085923 }
59095924 }
59105925 }
Original file line number Diff line number Diff line change 94729472 domainid: args.context.routerGroupByAccount[0].domainid
94739473 })
94749474 }
9475+ if ("networks" in args.context) {
9476+ $.extend(data2, {
9477+ networkid: args.context.networks[0].id
9478+ })
9479+ }
9480+ if ("vpc" in args.context) {
9481+ $.extend(data2, {
9482+ vpcid: args.context.vpc[0].id
9483+ })
9484+ }
94759485 }
94769486
94779487 var routers =[];
You can’t perform that action at this time.
0 commit comments