From e248df42e03abf313bf426c2994fede3e034d81c Mon Sep 17 00:00:00 2001
From: Fulgen301 <tokmajigeorge@gmail.com>
Date: Sun, 14 Oct 2018 18:24:14 +0200
Subject: Adapt to new picture format, support nonexistent authors

---
 src/pages/UploadCreate.vue | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

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

diff --git a/src/pages/UploadCreate.vue b/src/pages/UploadCreate.vue
index c435a2f..6cdabcd 100644
--- a/src/pages/UploadCreate.vue
+++ b/src/pages/UploadCreate.vue
@@ -14,9 +14,12 @@
           <div class="group">
             <q-field :error="errors.title !== undefined"
                      :error-label="errors.title"
-                     icon="fa-pencil">
+                     icon="fa-edit">
               <q-input v-model="title" float-label="Title" />
             </q-field>
+            <q-field icon="fa-edit">
+              <q-input v-model="version" float-label="Version" />
+            </q-field>
             <q-field :error="errors.tags !== undefined"
                      :error-label="errors.tags"
                      icon="fa-tags">
@@ -105,7 +108,7 @@
           </q-field>
           <q-stepper-navigation>
             <q-btn color="primary" flat @click="$refs.stepper.previous()">Back</q-btn>
-            <q-btn color="positive" icon="fa-save" @click="postUpload" :disabled="!uploadEnabled">Save mod</q-btn>
+            <q-btn color="positive" icon="fa-save" @click="postUpload" :disabled="!uploadEnabled">&nbsp;Save mod</q-btn>
           </q-stepper-navigation>
         </q-step>
         <q-step name="done" title="Done">
@@ -146,6 +149,7 @@
         files: [],
         tags: [],
         title: '',
+        version: '',
         description: '',
         slug: '',
         errors: {},
@@ -170,7 +174,7 @@
           headers: { Authorization: `JWT ${this.$store.state.user.authToken}` },
           acceptedFiles: '.ocs,.ocf,.ocd,.ocg,.ocr,.ocu,.c4d,.c4g,.c4f,.c4r,.c4s,.c4v,.c4l,.c4u',
           dictDefaultMessage: "<p><i class='fa fa-3x fa-cloud-upload'></i></p><p>Drop your mod files here or click to upload</p>",
-          maxFilesize: 30, // MB
+          maxFilesize: 100, // MB
         }
       },
       picDropzoneOptions () {
@@ -181,7 +185,6 @@
           acceptedFiles: '.png,.jpg',
           dictDefaultMessage: "<p><i class='fa fa-3x fa-cloud-upload'></i></p><p>Drop your image here or click to upload</p>",
           maxFilesize: 3, // MB
-          maxFiles: 1,
           thumbnailWidth: null,
           thumbnailHeight: 300,
           createImageThumbnails: true,
@@ -233,6 +236,7 @@
         }
         let params = {
           title: this.title,
+          version: this.version,
           description: this.description,
           files: this.files.map(el => el.id),
           tags: this.tags,
@@ -253,6 +257,7 @@
       },
       reset () {
         this.title = ''
+        this.version = ''
         this.description = ''
         this.savedScenario = ''
         this.errors = {}
-- 
cgit v1.2.3-54-g00ecf

