diff --git a/ui/scripts/network.js b/ui/scripts/network.js index 834869ee23a..86ef9dca511 100644 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -463,7 +463,46 @@ } }); } - }, + }, + domainid: { + label: 'Domain', + select: function(args) { + $.ajax({ + url: createURL('listDomains'), + data: { + listAll: true, + details: 'min' + }, + success: function(json) { + var array1 = [{id: '', description: ''}]; + var domains = json.listdomainsresponse.domain; + if(domains != null && domains.length > 0) { + for(var i = 0; i < domains.length; i++) { + array1.push({id: domains[i].id, description: domains[i].path}); + } + } + args.response.success({ + data: array1 + }); + } + }); + }, + isHidden: function(args) { + if(isAdmin() || isDomainAdmin()) + return false; + else + return true; + } + }, + account: { + label: 'Account', + isHidden: function(args) { + if(isAdmin() || isDomainAdmin()) + return false; + else + return true; + } + }, tagKey: { label: 'Tag Key' }, tagValue: { label: 'Tag Value' } },