Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#468 Add OTU by match cites to left side. Next remove automatic OTUs
from source from match/proxy list.
- Loading branch information
Showing
4 changed files
with
66 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
app/javascript/vue/tasks/nomenclature/by_source/components/otus_by_match.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<template> | ||
<div> | ||
<h2>OTU Names</h2> | ||
<table-component | ||
:list="otu_names_cites_list"/> | ||
</div> | ||
</template> | ||
<script> | ||
import RadialAnnotator from '../../../../components/annotator/annotator.vue' | ||
import OtuRadial from '../../../../components/otu/otu.vue' | ||
import TableComponent from './tables/table.vue' | ||
export default { | ||
components: { | ||
RadialAnnotator, | ||
TableComponent, | ||
OtuRadial | ||
}, | ||
props: { | ||
value: { | ||
type: String | ||
}, | ||
sourceID: { | ||
type: String, | ||
default: "0" | ||
}, | ||
newTaxon: { | ||
type: Object, | ||
default: {} | ||
} | ||
}, | ||
data() { | ||
return { | ||
otu_names_cites_list: [] | ||
} | ||
}, | ||
watch: { | ||
sourceID() { | ||
this.getCites(); | ||
}, | ||
newTaxon() { | ||
this.addToList(this.newTaxon) | ||
} | ||
}, | ||
methods: { | ||
getCites() { | ||
this.$http.get('/citations.json?citation_object_type=Otu&source_id=' + this.sourceID).then(response => { | ||
// build the tabular list, extracting the | ||
this.otu_names_cites_list = response.body; | ||
this.$emit("otu_names_cites", this.otu_names_cites_list) | ||
}) | ||
}, | ||
addToList(citation) { | ||
this.otu_names_cites_list.push(citation); | ||
} | ||
}, | ||
} | ||
</script> |
5 changes: 0 additions & 5 deletions
5
app/javascript/vue/tasks/nomenclature/by_source/components/otus_by_proxy.vue
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters