diff --git a/ui/scripts/system.js b/ui/scripts/system.js index a211a7f2b60..405c5ce59f1 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -7620,7 +7620,29 @@ } }); } - }, + }, + clusterid: { + label: 'label.cluster', + dependsOn: 'podid', + select: function(args) { + $.ajax({ + url: createURL("listClusters&podid=" + args.podid), + dataType: "json", + async: false, + success: function(json) { + var clusters = json.listclustersresponse.cluster ? json.listclustersresponse.cluster : []; + args.response.success({ + data: $.map(clusters, function(cluster) { + return { + id: cluster.id, + description: cluster.name + }; + }) + }); + } + }); + } + }, domainid: { label: 'Domain', select: function(args) {