From 1ba019edcfdb574edcf511e6941afd5402787f8d Mon Sep 17 00:00:00 2001
From: Fulgen301 <tokmajigeorge@gmail.com>
Date: Sun, 16 Sep 2018 17:30:10 +0200
Subject: UploadDetail: Disable comment voting as it is not implemented yet

---
 src/pages/UploadDetail.vue | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'src/pages/UploadDetail.vue')

diff --git a/src/pages/UploadDetail.vue b/src/pages/UploadDetail.vue
index f274eec..ec75faa 100644
--- a/src/pages/UploadDetail.vue
+++ b/src/pages/UploadDetail.vue
@@ -151,7 +151,7 @@
                    icon="fa-trash"
                    color="negative"
                    @click="deleteComment(comment)"/>
-            <comment-voter @voted="refresh" :comment="comment"></comment-voter>
+            <comment-voter @voted="refresh" :comment="comment" v-if="false" ></comment-voter>
           </div>
         </q-card-main>
         <q-card-separator />
@@ -345,7 +345,7 @@
         return picture.map(p => `${this.$http.defaults.baseURL}/media/${p.id}`)
       },
       uploadSuccess (file, response) {
-        this.upload.files.push(response)
+        this.upload.files.push(response.data)
         this.$refs.filesDropzone.removeFile(file)
         this.$q.notify({type: 'positive', message: 'File uploaded successfully. Press the save button to activate it.'})
       },
@@ -415,7 +415,6 @@
             that.$q.notify('Error sending your comment')
             this.commentSaving = false
             that.refresh()
-            console.log(error)
             console.error(error)
           })
         }
-- 
cgit v1.2.3-54-g00ecf

