WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c9d90d8

Browse files
authored
fix(PriceTagAssistant): properly mark drawn price tags as Manual instead of Automatic (#1638)
1 parent 515295f commit c9d90d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/ContributionAssistantDrawCanvas.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@
7575
this.boundingBoxes = [] // reset boundingBoxes
7676
}
7777
if (this.boundingBoxesFromServer) {
78-
this.boundingBoxes = this.boundingBoxes.concat(this.boundingBoxesFromServer.map(({boundingBox, id, status}) => {
78+
this.boundingBoxes = this.boundingBoxes.concat(this.boundingBoxesFromServer.map(({boundingBox, id, status, created_by }) => {
7979
return {
8080
startY: boundingBox[0] * this.image.height,
8181
startX: boundingBox[1] * this.image.width,
8282
endY: boundingBox[2] * this.image.height,
8383
endX: boundingBox[3] * this.image.width,
84-
boundingSource: this.$t('ContributionAssistant.AutomaticBoundingBoxSource'),
84+
boundingSource: created_by ? this.$t('ContributionAssistant.ManualBoundingBoxSource') : this.$t('ContributionAssistant.AutomaticBoundingBoxSource'),
8585
id: id,
8686
status: status
8787
}

src/views/ProofPriceTagAssistant.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ export default {
420420
this.loadPriceTagsWithPredictions(1, maxTries, priceTags => {
421421
this.priceTags = priceTags
422422
this.boundingBoxesFromServer = this.priceTags.map(priceTag => {
423-
return {boundingBox: priceTag.bounding_box, id: priceTag.id, status: priceTag.status}
423+
return {boundingBox: priceTag.bounding_box, id: priceTag.id, status: priceTag.status, created_by: priceTag.created_by}
424424
})
425425
this.proofWithBoundingBoxesLoading = false
426426
})

0 commit comments

Comments
 (0)