1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-06 12:02:45 +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

@@ -52,7 +52,7 @@ const modeMap = {
sh: 'shell',
bash: 'shell',
toml: 'toml',
sql: 'sql',
sql: 'text/x-sql',
xml: 'xml',
yaml: 'yaml',
yml: 'yaml',

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'));