mirror of https://github.com/apache/cloudstack.git
[UI] fix bug: Cannot delete SSH keypairs in projects
Before change: error message: ProjectId and account/domainId can't be specified together After change: SSH keypairs can be removed
This commit is contained in:
parent
5b7d935ab0
commit
e9cc5551d3
|
|
@ -1876,10 +1876,14 @@
|
|||
},
|
||||
action: function(args) {
|
||||
var data = {
|
||||
domainid: args.context.sshkeypairs[0].domainid,
|
||||
account: args.context.sshkeypairs[0].account,
|
||||
name: args.context.sshkeypairs[0].name
|
||||
};
|
||||
if (!args.context.projects) {
|
||||
$.extend(data, {
|
||||
domainid: args.context.sshkeypairs[0].domainid,
|
||||
account: args.context.sshkeypairs[0].account,
|
||||
});
|
||||
}
|
||||
$.ajax({
|
||||
url: createURL('deleteSSHKeyPair'),
|
||||
data: data,
|
||||
|
|
|
|||
Loading…
Reference in New Issue