mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Using post for uploadSslCert api (#842)
* Adding post param to actions * Using post for uploadSslCert api Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
fbb3a7aed5
commit
fafaf11a15
@ -160,6 +160,7 @@ export default {
|
||||
label: 'label.add.certificate',
|
||||
dataView: true,
|
||||
args: ['name', 'certificate', 'privatekey', 'certchain', 'password', 'account', 'domainid'],
|
||||
post: true,
|
||||
show: (record) => { return record.state === 'enabled' },
|
||||
mapping: {
|
||||
account: {
|
||||
|
||||
@ -1000,7 +1000,13 @@ export default {
|
||||
|
||||
var hasJobId = false
|
||||
this.actionLoading = true
|
||||
api(action.api, params).then(json => {
|
||||
let args = null
|
||||
if (action.post) {
|
||||
args = [action.api, {}, 'POST', params]
|
||||
} else {
|
||||
args = [action.api, params]
|
||||
}
|
||||
api(...args).then(json => {
|
||||
hasJobId = this.handleResponse(json, resourceName, action)
|
||||
if ((action.icon === 'delete' || ['archiveEvents', 'archiveAlerts', 'unmanageVirtualMachine'].includes(action.api)) && this.dataView) {
|
||||
this.$router.go(-1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user