mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
refactor function deleteFile and delete comment
This commit is contained in:
@@ -60,7 +60,6 @@ export default {
|
||||
};
|
||||
},
|
||||
deleteFile(akte_id){
|
||||
console.log("in deleteFile " + akte_id);
|
||||
return {
|
||||
method: 'post',
|
||||
url: 'api/frontend/v1/stv/dokumente/deleteAkte/' + akte_id,
|
||||
|
||||
@@ -306,7 +306,8 @@ export default {
|
||||
});
|
||||
},
|
||||
deleteFile(akte_id){
|
||||
return this.$fhcApi.factory.stv.documents.deleteFile(akte_id)
|
||||
return this.$api
|
||||
.call(ApiStvDocuments.deleteFile(akte_id))
|
||||
.then(response => {
|
||||
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successDelete'));
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user