Add min / max tabs to go to tab dialog (output)

This commit is contained in:
j433866 2019-06-04 09:39:47 +01:00
parent 17b95f1609
commit f55102716e

View File

@ -796,7 +796,9 @@ class OutputWaiter {
* Handler for go to tab button clicked
*/
goToTab() {
const tabNum = parseInt(window.prompt("Enter tab number:", this.getActiveTab().toString()), 10);
const min = this.getSmallestInputNum(),
max = this.getLargestInputNum(),
tabNum = parseInt(window.prompt(`Enter tab number (${min} - ${max}):`, this.getActiveTab().toString()), 10);
if (this.outputExists(tabNum)) {
this.changeTab(tabNum, this.app.options.syncTabs);
}