From 0782f94e07733313fdae658a21ffc1b490e5e3e1 Mon Sep 17 00:00:00 2001 From: turner Date: Thu, 9 Nov 2023 15:25:43 -0500 Subject: [PATCH] Button text copy edits --- js/roi/ROITable.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/roi/ROITable.js b/js/roi/ROITable.js index 292bfe5ec..7dfdfe899 100644 --- a/js/roi/ROITable.js +++ b/js/roi/ROITable.js @@ -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() @@ -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() {