var g_nonLayoutTestFailureBuilders = null;
+var g_updating = false;
+var g_updateButton = null;
+
function updatePartyTime()
{
if (!g_unexpectedFailuresController.length() && !g_nonLayoutTestFailureBuilders.hasFailures())
function update()
{
+ if (g_updating)
+ return;
+
+ g_updating = true;
+ if (g_updateButton)
+ g_updateButton.disabled = true;
+
if (g_revisionHint)
g_revisionHint.dismiss();
updatePartyTime();
g_unexpectedFailuresController.purge();
- Object.keys(config.currentBuilders()).forEach(function(builderName) {
+ Object.keys(config.builders).forEach(function(builderName) {
if (!model.state.resultsByBuilder[builderName])
g_info.add(new ui.notifications.Info('Could not find test results for ' + builderName + ' in the last ' + config.kBuildNumberLimit + ' runs.'));
});
g_revisionHint = new ui.notifications.Info('');
g_revisionHint.updateWithNode(new ui.revisionDetails());
g_info.add(g_revisionHint);
+
+ g_updating = false;
+ if (g_updateButton)
+ g_updateButton.disabled = false;
});
});
}
updateButton.addEventListener("click", update);
updateButton.textContent = 'update';
topBar.appendChild(updateButton);
+ g_updateButton = updateButton;
var treeStatus = new ui.TreeStatus();
topBar.appendChild(treeStatus);