mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 UI - physical network page - Network Service Providers - Virtual Router - Instances tab - implement Refresh button.
This commit is contained in:
parent
4bec750de6
commit
caec604a80
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue