Skip to content

Commit

Permalink
Added ROI Set name to the ROI menu
Browse files Browse the repository at this point in the history
  • Loading branch information
milandomazet committed Aug 14, 2024
1 parent 25c83c2 commit 8c84a45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/roi/ROIManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class ROIManager {
if (features) {

for (let feature of features) {

if ('name' in roiSet) feature['roiSet'] = roiSet.name
const regionKey = createRegionKey(chr, feature.start, feature.end)

const {
Expand Down
5 changes: 3 additions & 2 deletions js/roi/ROIMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ class ROIMenu {
}

menuItems(feature, isUserDefined, event, roiManager, columnContainer, regionElement) {

const items = [`<b>${feature.name || ''}</b>`,]
const items = feature.name ? [`<b>Description: ${feature.name}</b><br/>`] : []
if ('roiSet' in feature) items.push(`<b>ROI Set: ${feature.roiSet}</b>`)
if (items.length > 0) items.push(`<hr/>`)

if (isUserDefined) {
items.push(
Expand Down

0 comments on commit 8c84a45

Please sign in to comment.