Skip to content

Commit

Permalink
Merge pull request nih-sparc#761 from Tehsurfer/flatmap-card-qa
Browse files Browse the repository at this point in the history
Rework flatmap card labels for QA feedbaack
  • Loading branch information
egauzens authored Nov 7, 2023
2 parents f664118 + b749686 commit cc64bb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/ImagesGallery/ImagesGallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -405,15 +405,17 @@ export default {
...Array.from(scicrunchData.flatmaps, f => {
let title = f.uberonid ? f.uberonid : null
if (f.organ) {
title = `View ${f.organ} on ${f.species ? f.species : 'rat'}`
title = `View ${f.organ}`
}
let linkUrl = `${baseRoute}maps?type=flatmap&dataset_version=${datasetVersion}&dataset_id=${datasetId}&taxo=${f.taxo}&uberonid=${f.uberonid}`
if (f.species) linkUrl = linkUrl + `&for_species=${f.species}`
const item = {
id: f.uberonid,
title: title,
type: 'Flatmap',
type: `${this.capitalize(
f.species ? f.species : 'rat'
)} flatmap`,
thumbnail: null,
link: linkUrl
}
Expand Down

0 comments on commit cc64bb8

Please sign in to comment.