mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cloudstack 3.0 UI - physical network page - Network Service Providers - Virtual Router - Instances tab - implement Refresh button.
This commit is contained in:
parent
ae8e9a11ec
commit
e27537f51b
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user