487b4ab002819d30ffe4831a2137653f6094cbbf max Tue Dec 16 08:24:43 2025 -0800 make disconnect button appear on hub error, refs #36791 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 942c1730fef..81f2df57d8b 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -9743,31 +9743,31 @@ if (hub->email) hPrintf("The authors can be reached at %s", hub->email); hPrintf("' href='%s' " "style='color:#FFF; font-size: 13px;' target=_blank>Info</a>", hub->descriptionUrl); } hPrintf(" "); } } hPrintf("<button type='button' class=\"hgtButtonHideGroup\" data-group-name=\"%s\" " "title='Hide all tracks in this group'>Hide group</button> ", group->name); - if (hub) + if (hub || group->errMessage) { safef(idText, sizeof idText, "%s_%d_disconn", hubName, disconCount); disconCount++; hPrintf("<input name=\"hubDisconnectButton\" title='Disconnect third-party track hub and remove all tracks' " "id='%s'" " type=\"button\" value=\"Disconnect\">\n", idText); jsOnEventByIdF("click", idText, "document.disconnectHubForm.elements['hubId'].value='%s';" "document.disconnectHubForm.submit();return true;", hubName + strlen(hubTrackPrefix)); #ifdef GRAPH_BUTTON_ON_QUICKLIFT safef(idText, sizeof idText, "%s_%d_graph", hubName, graphCount); graphCount++; hPrintf("<input name=\"graphButton\" id='%s'"