Skip to content
Snippets Groups Projects
Commit b33be9f2 authored by moon's avatar moon
Browse files

Fixed the bug of not showing Unipro ID in tags input while adding a condensate

parent 9cc72e59
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ export default {
methods: {
addObj(obj) {
const vm = this;
this.$store.dispatch('Param/addProtein', { proteinName: obj.tag.proteinName });
this.$store.dispatch('Param/addProtein', { uniprot_id: obj.tag.uniprot_id });
vm.labelTag = '';
},
removeObj(obj) {
......@@ -69,7 +69,7 @@ export default {
.then((json) => {
vm.autocompleteItems = [];
vm.autocompleteItems = _.uniq(_.map(json.data, (c) => {
return {'text': c.uniprot_id, 'name': c.name, 'gene_name': c.gene_name, 'proteinName': c.uniprot_id}
return {'text': c.uniprot_id, 'name': c.name, 'gene_name': c.gene_name, 'uniprot_id': c.uniprot_id}
}), 'text')
})
},
......@@ -91,4 +91,8 @@ export default {
margin: 2px;
font-size: .85em;
}
.ti-new-tag-input-wrapper input[data-v-61d92e31] {
min-width: unset;
}
</style>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment