diff --git a/ui/scripts/system.js b/ui/scripts/system.js index ed4be814e29..574aacd3f23 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -2292,16 +2292,20 @@ redundantRouterState: { label: 'label.redundant.state' } } ], - dataProvider: function(args) { - var item = args.context.routers[0]; - if(item.isredundantrouter == true) - item["redundantRouterState"] = item.redundantstate; - else - item["redundantRouterState"] = ""; - args.response.success({ - actionFilter: routerActionfilter, - data: item - }); + dataProvider: function(args) { + $.ajax({ + url: createURL("listRouters&id=" + args.context.routers[0].id), + dataType: 'json', + async: true, + success: function(json) { + var jsonObj = json.listroutersresponse.router[0]; + addExtraPropertiesToRouterInstanceObject(jsonObj); + args.response.success({ + actionFilter: routerActionfilter, + data: jsonObj + }); + } + }); } } } @@ -7777,4 +7781,11 @@ } } + var addExtraPropertiesToRouterInstanceObject = function(jsonObj) { + if(jsonObj.isredundantrouter == true) + jsonObj["redundantRouterState"] = jsonObj.redundantstate; + else + jsonObj["redundantRouterState"] = ""; + } + })($, cloudStack);