From 0b40910284d40409c8d70eafea717382ba8461f3 Mon Sep 17 00:00:00 2001 From: Arne Schauf Date: Sun, 4 Mar 2018 01:48:51 +0100 Subject: fix a few things --- src/components/UploadVoter.vue | 2 +- src/pages/UploadCreate.vue | 10 ++++------ src/pages/UploadDetail.vue | 41 +++++++++++++++++++---------------------- src/pages/UploadList.vue | 33 +++++++++++++-------------------- 4 files changed, 37 insertions(+), 49 deletions(-) (limited to 'src') diff --git a/src/components/UploadVoter.vue b/src/components/UploadVoter.vue index 035aa11..65a5453 100644 --- a/src/components/UploadVoter.vue +++ b/src/components/UploadVoter.vue @@ -40,7 +40,7 @@ methods: { vote (impact) { let that = this - this.$http.post(`/uploads/${this.upload._id}/vote`, {vote: {impact: impact}}).then(response => that.$emit('voted')) + this.$http.post(`/uploads/${this.upload._id}/vote`, {impact: impact}).then(response => that.$emit('voted')) }, }, } diff --git a/src/pages/UploadCreate.vue b/src/pages/UploadCreate.vue index 53a6a36..e1d027d 100644 --- a/src/pages/UploadCreate.vue +++ b/src/pages/UploadCreate.vue @@ -225,12 +225,10 @@ return } let params = { - upload: { - title: this.title, - description: this.description, - files: this.files.map(el => el._id), - pic: this.pic, - }, + title: this.title, + description: this.description, + files: this.files.map(el => el._id), + pic: this.pic, } this.$http.post('/uploads', params) .then((response) => { diff --git a/src/pages/UploadDetail.vue b/src/pages/UploadDetail.vue index 53de013..b2042b6 100644 --- a/src/pages/UploadDetail.vue +++ b/src/pages/UploadDetail.vue @@ -95,7 +95,7 @@
Downloading... - + {{ downloadProgresses[fid._id].loaded|prettyBytes }} / {{ downloadProgresses[fid._id].total|prettyBytes }} - +
@@ -137,10 +137,7 @@