Skip to content

Commit d2fdab0

Browse files
committed
Improve ordering of fields of VPC router detail tab
The field we use most are now on the top: - name - state - hypervisor - link local ip - redundant state The other fields are nice, but not needed most of the time.
1 parent a243339 commit d2fdab0

1 file changed

Lines changed: 27 additions & 23 deletions

File tree

ui/scripts/network.js

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5838,15 +5838,36 @@
58385838
label: 'label.name'
58395839
}
58405840
}, {
5841+
state: {
5842+
label: 'label.state'
5843+
},
5844+
hostname: {
5845+
label: 'label.host'
5846+
},
5847+
linklocalip: {
5848+
label: 'label.linklocal.ip'
5849+
},
5850+
isredundantrouter: {
5851+
label: 'label.redundant.router',
5852+
converter: function(booleanValue) {
5853+
if (booleanValue == true) {
5854+
return "Yes";
5855+
}
5856+
return "No";
5857+
}
5858+
},
5859+
redundantstate: {
5860+
label: 'label.redundant.state'
5861+
},
58415862
id: {
58425863
label: 'label.id'
58435864
},
5865+
serviceofferingname: {
5866+
label: 'label.service.offering'
5867+
},
58445868
zonename: {
58455869
label: 'label.zone'
58465870
},
5847-
dns1: {
5848-
label: 'label.dns'
5849-
},
58505871
gateway: {
58515872
label: 'label.gateway'
58525873
},
@@ -5856,26 +5877,8 @@
58565877
guestipaddress: {
58575878
label: 'label.guest.ip'
58585879
},
5859-
linklocalip: {
5860-
label: 'label.linklocal.ip'
5861-
},
5862-
hostname: {
5863-
label: 'label.host'
5864-
},
5865-
state: {
5866-
label: 'label.state'
5867-
},
5868-
serviceofferingname: {
5869-
label: 'label.service.offering'
5870-
},
5871-
isredundantrouter: {
5872-
label: 'label.redundant.router',
5873-
converter: function(booleanValue) {
5874-
if (booleanValue == true) {
5875-
return "Yes";
5876-
}
5877-
return "No";
5878-
}
5880+
dns1: {
5881+
label: 'label.dns'
58795882
},
58805883
account: {
58815884
label: 'label.account'
@@ -5884,6 +5887,7 @@
58845887
label: 'label.domain'
58855888
}
58865889
}],
5890+
58875891
dataProvider: function(args) {
58885892
$.ajax({
58895893
url: createURL("listRouters&listAll=true&vpcid=" + args.context.vpc[0].id),

0 commit comments

Comments
 (0)