Parcourir la source

Add of comment field for match extracts experiment

Jérôme BUISINE il y a 5 ans
Parent
commit
dc91663a87

+ 4 - 2
src/mixins/ExperimentBaseExtracts.vue

@@ -25,7 +25,8 @@ export default {
       extractsInfos: null,
 
       showHoverBorder: null,
-      lockConfig: null
+      lockConfig: null,
+      comment: null
     }
   },
   computed: {
@@ -207,7 +208,8 @@ export default {
           zone: x.zone
         })),
         qualities: this.qualities,
-        referenceImage: this.referenceImage
+        referenceImage: this.referenceImage,
+        comment: this.comment
       }
       this.sendMessage({ msgId: experimentMsgId.VALIDATED, msg: obj })
       this.setExperimentFinished()

+ 4 - 0
src/views/Experiments/MatchExtractsWithReference.vue

@@ -73,6 +73,10 @@
       </v-flex>
       <!-- Experiment validation button -->
       <v-layout justify-end align-content-end>
+        <v-text-field
+          v-model="comment"
+          label="Add a comment here"
+        />
         <v-btn @click="finishExperiment" color="primary" large right>Finish experiment</v-btn>
       </v-layout>
       <!--/ Experiment validation button -->