From fb6354ce2c6f53a079945aa1f50d65794ee6bc88 Mon Sep 17 00:00:00 2001 From: konrad Date: Tue, 21 Nov 2017 11:49:52 +0100 Subject: [PATCH] Fixed a bug where the author was still showed when it was already deleted --- frontend/src/components/Authors.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Authors.vue b/frontend/src/components/Authors.vue index 05fd2a8..08ae0a7 100644 --- a/frontend/src/components/Authors.vue +++ b/frontend/src/components/Authors.vue @@ -100,7 +100,7 @@ export default { { text: 'Delete', icon: 'trash', - action: this.deleteauthor, + action: this.DeleteAuthor, css: 'ui red icon button' }, { @@ -175,7 +175,7 @@ export default { deleteBtnSuccess () { // Event helper function this.$emit('delete-submit') }, - deleteauthor (obj) { + DeleteAuthor (obj) { this.showModal = true this.$on('delete-submit', function () { HTTP.delete('authors/' + obj.ID.content) @@ -183,7 +183,7 @@ export default { console.log(response) if (response.status === 200 && response.data.Message === 'success') { this.success = 'The author was deleted successfully.' - this.loadauthors() + this.loadAuthors() } }) .catch(e => {