Skip to content

Commit

Permalink
Merge "Closes-Bug:#1464663 Change is to format the interface name in …
Browse files Browse the repository at this point in the history
…the vrouter details page --> interface tab,when there is fqn Name in name then the name of the interface should be one line and rest of the text should be in next line. Added a formatter function which just returns the column value.Reason to add formatter function is break tag added in the value should be parsed as HTML." into R2.20
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jun 15, 2015
2 parents df27d17 + d27f2a2 commit aa13f4d
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ monitorInfraComputeInterfacesClass = (function() {
if(new RegExp(/logical-port|remote-physical-port/).test(obj['type'])) {
var parts = obj['name'].split(":");
if(parts.length == 3){
obj['dispName'] = contrail.format('{0} ({1}:{2})',parts[2],parts[0],parts[1]);
obj['dispName'] = contrail.format('{0}<br/> ({1}:{2})',parts[2],parts[0],parts[1]);
}
}
if(new RegExp(/vport|logical-port|remote-physical-port/).test(obj['type'])) {
Expand Down Expand Up @@ -176,7 +176,13 @@ monitorInfraComputeInterfacesClass = (function() {
{
field:"dispName",
name:"Name",
minWidth:125
minWidth:125,
formatter:function(r,c,v,cd,dc) {
return v;
},
searchFn:function(d){
return d['dispName'];
}
},
{
field:"label",
Expand Down

0 comments on commit aa13f4d

Please sign in to comment.