Skip to content

Commit

Permalink
Added lock to biocurations
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Nov 8, 2018
1 parent bc89511 commit d18602a
Showing 1 changed file with 10 additions and 2 deletions.
Expand Up @@ -65,7 +65,7 @@ export default {
biocurationsGroups: [],
addQueue: [],
createdBiocutarions: [],
delay: undefined
delay: undefined,
}
},
mounted: function () {
Expand All @@ -80,6 +80,9 @@ export default {
watch: {
biologicalId: {
handler (newVal, oldVal) {
if((this.locked.biocuration) && newVal == undefined) {
this.addQueue = this.addQueue.concat(this.getCreatedBiocurationIds())
}
this.createdBiocutarions = []
if (newVal && oldVal == undefined) {
this.processQueue()
Expand All @@ -92,7 +95,7 @@ export default {
this.createdBiocutarions = response
})
}, 250)
}
}
},
immediate: true
},
Expand All @@ -105,6 +108,11 @@ export default {
}
},
methods: {
getCreatedBiocurationIds() {
return this.createdBiocutarions.map(item => {
return item.biocuration_class_id
})
},
splitGroups() {
let that = this
this.biocurationsGroups
Expand Down

0 comments on commit d18602a

Please sign in to comment.