1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Merge branch 'master' into dropzone-timeout

This commit is contained in:
Dan Brown
2018-12-22 15:08:54 +00:00
65 changed files with 2348 additions and 582 deletions

View File

@ -159,8 +159,8 @@ const methods = {
});
return;
}
this.$http.delete(`/images/${this.selectedImage.id}`).then(resp => {
let url = window.baseUrl(`/images/${this.selectedImage.id}`);
this.$http.delete(url).then(resp => {
this.images.splice(this.images.indexOf(this.selectedImage), 1);
this.selectedImage = false;
this.$events.emit('success', trans('components.image_delete_success'));