cloudstack 3.0 UI - physical network page - Network Service Providers - Virtual Router - Instances tab - implement Refresh button.

This commit is contained in:
Jessica Wang 2012-04-10 12:32:03 -07:00
parent ae8e9a11ec
commit e27537f51b

View File

@ -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
});
}
});
}
}
}
@ -7776,4 +7780,11 @@
}
}
var addExtraPropertiesToRouterInstanceObject = function(jsonObj) {
if(jsonObj.isredundantrouter == true)
jsonObj["redundantRouterState"] = jsonObj.redundantstate;
else
jsonObj["redundantRouterState"] = "";
}
})($, cloudStack);