Remove delete functionality

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Ritchie Vincent 2020-02-05 18:17:52 +00:00 committed by Rohit Yadav
parent 592157ba2f
commit 2ae46cca95
1 changed files with 0 additions and 38 deletions

View File

@ -238,44 +238,6 @@ export default {
this.params.find(i => {
if (i.name === field) this.placeholder[field] = i.description
})
},
handleDeleteNetwork (item) {
this.fetchLoading = true
api('deleteNetwork', {
id: item.id
}).then(response => {
this.$store.dispatch('AddAsyncJob', {
title: `Delete VPC Network`,
jobid: response.deletenetworkresponse.jobid,
status: 'progress'
})
this.$pollJob({
jobId: response.deletenetworkresponse.jobid,
successMethod: () => {
this.fetchData()
this.fetchLoading = false
},
errorMessage: 'Failed to delete VPC Network',
errorMethod: () => {
this.fetchData()
this.fetchLoading = false
},
loadingMessage: `Deleting VPC Network...`,
catchMessage: 'Error encountered while fetching async job result',
catchMethod: () => {
this.fetchData()
this.fetchLoading = false
}
})
}).catch(error => {
this.$notification.error({
message: 'Request Failed',
description: error.response.headers['x-description']
})
this.fetchLoading = false
this.fetchData()
})
}
}
}