From 6b4076b29fb0429228e60e4a39c07bd608492f6f Mon Sep 17 00:00:00 2001 From: konrad Date: Thu, 23 Nov 2017 16:05:39 +0100 Subject: [PATCH] Fixed reloading issue when deleting a book --- frontend/src/components/Books.vue | 3 ++- frontend/src/http-common/index.js | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Books.vue b/frontend/src/components/Books.vue index 09e97e0..1a4f9e4 100644 --- a/frontend/src/components/Books.vue +++ b/frontend/src/components/Books.vue @@ -242,12 +242,13 @@ export default { title: this.langGeneral.success, text: this.langBook.deleteSuccess }) + this.loadBooks() } }) .catch(e => { this.errorNotification(e) + this.loadBooks() }) - this.loadBooks() this.showModal = false }) }, diff --git a/frontend/src/http-common/index.js b/frontend/src/http-common/index.js index 4bd6e76..9df1879 100644 --- a/frontend/src/http-common/index.js +++ b/frontend/src/http-common/index.js @@ -1,7 +1,4 @@ import axios from 'axios' -// import auth from '../auth' -// import config from '../../static/config' -// import config from 'config' let config = require('../../siteconfig.json') export const HTTP = axios.create({