Skip to content

Commit

Permalink
Button text copy edits
Browse files Browse the repository at this point in the history
  • Loading branch information
turner committed Nov 13, 2023
1 parent b0d9acc commit 0782f94
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/roi/ROITable.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,18 @@ class ROITable extends RegionTableBase {

super.footerDOM = gotoButtonHandler

this.gotoButton.textContent = 'Go to selected region(s)'

// Hide/Show Button
const toggleROIButton = DOMUtils.div({ class: 'igv-roi-table-button' })
const dom = this._footerDOM
dom.appendChild(toggleROIButton)

toggleROIButton.id = 'igv-roi-hide-show-button'
toggleROIButton.textContent = 'Hide'
toggleROIButton.textContent = 'Hide all ROIs'

this.toggleROIButton = toggleROIButton

function toggleROIButtonHandler(event) {
event.preventDefault()
event.stopPropagation()
Expand All @@ -92,7 +94,7 @@ class ROITable extends RegionTableBase {
}

const status = elements[ 0 ].style.display
this.toggleROIButton.textContent = 'none' === status ? 'Show' : 'Hide'
this.toggleROIButton.textContent = 'none' === status ? 'Show all ROIs' : 'Hide all ROIs'

}
dispose() {
Expand Down

0 comments on commit 0782f94

Please sign in to comment.