Skip to content

Commit

Permalink
Merge pull request #1 from alan-wu/Tehsurfer-add-neuron-search
Browse files Browse the repository at this point in the history
Tehsurfer add neuron search
  • Loading branch information
Tehsurfer authored Jun 24, 2021
2 parents b48d08b + bc75e54 commit 827c0b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tehsurfer/map-side-bar",
"version": "2.0.5",
"name": "@abi-software/map-side-bar",
"version": "1.1.0-beta-1",
"main": "./dist/map-side-bar.common.js",
"files": [
"dist/*",
Expand Down
11 changes: 10 additions & 1 deletion src/components/DatasetCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</span>
<div class="card-right" >
<div class="title" @click="cardClicked">{{entry.description}}</div>
<div class="details">{{entry.contributors[0].name}}; {{entry.contributors[1].name}}</div>
<div class="details">{{contributors}}</div>
<div class="details">{{entry.numberSamples}} sample(s)</div>
<div class="details">id: {{discoverId}}</div>
<div>
Expand Down Expand Up @@ -71,6 +71,15 @@ export default {
computed: {
hasCSVFile: function(){
return ( this.entry.csvFiles && this.entry.csvFiles.length !== 0 )
},
contributors: function() {
let text = "";
if (this.entry.contributors && this.entry.contributors.length > 0) {
text = this.entry.contributors[0].name;
if (this.entry.contributors[1])
text = text + `; ${this.entry.contributors[1].name}`;
}
return text;
}
},
methods: {
Expand Down

0 comments on commit 827c0b8

Please sign in to comment.