From d2fdab0750468e21fda350bbed8f9d1d2c3f262f Mon Sep 17 00:00:00 2001 From: Remi Bergsma Date: Sun, 21 Feb 2016 20:20:56 +0100 Subject: [PATCH] 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. --- ui/scripts/network.js | 50 +++++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/ui/scripts/network.js b/ui/scripts/network.js index bb599fd5ec5f..f4e0f9a96b61 100755 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -5838,15 +5838,36 @@ label: 'label.name' } }, { + state: { + label: 'label.state' + }, + hostname: { + label: 'label.host' + }, + linklocalip: { + label: 'label.linklocal.ip' + }, + isredundantrouter: { + label: 'label.redundant.router', + converter: function(booleanValue) { + if (booleanValue == true) { + return "Yes"; + } + return "No"; + } + }, + redundantstate: { + label: 'label.redundant.state' + }, id: { label: 'label.id' }, + serviceofferingname: { + label: 'label.service.offering' + }, zonename: { label: 'label.zone' }, - dns1: { - label: 'label.dns' - }, gateway: { label: 'label.gateway' }, @@ -5856,26 +5877,8 @@ guestipaddress: { label: 'label.guest.ip' }, - linklocalip: { - label: 'label.linklocal.ip' - }, - hostname: { - label: 'label.host' - }, - state: { - label: 'label.state' - }, - serviceofferingname: { - label: 'label.service.offering' - }, - isredundantrouter: { - label: 'label.redundant.router', - converter: function(booleanValue) { - if (booleanValue == true) { - return "Yes"; - } - return "No"; - } + dns1: { + label: 'label.dns' }, account: { label: 'label.account' @@ -5884,6 +5887,7 @@ label: 'label.domain' } }], + dataProvider: function(args) { $.ajax({ url: createURL("listRouters&listAll=true&vpcid=" + args.context.vpc[0].id),