Skip to content

Commit

Permalink
Polish text some more
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennestuder committed May 22, 2020
1 parent 5cdd05b commit 4dec107
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/resources/buildServerResources/admin/buildScan.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
BS.BuildScan = {
startCleanup: function () {
$('cleanupResult').style.visibility = 'visible'
$('startBuildScanCleanupButton').disabled = true
$('progressRing').style.visibility = 'visible'
$('cleanupResult').textContent = 'Cleanup is running...';
$('cleanupResult').style.visibility = 'visible'
$('progressRing').style.visibility = 'visible'
BS.ajaxRequest('/admin/buildScanCleanup.html', {
method: 'POST',
onComplete: function (res) {
$('progressRing').style.visibility = 'hidden'
$('startBuildScanCleanupButton').disabled = false
if (res.status === 200) {
$('cleanupResult').textContent = 'Cleanup was successful';
$('cleanupResult').textContent = 'Cleanup successful';
} else {
$('cleanupResult').textContent = 'Failed to execute cleanup - check the server logs'
$('cleanupResult').textContent = 'Cleanup failed - check the server logs for details'
}
$('startBuildScanCleanupButton').disabled = false
}
});
return false;
}
}
}

0 comments on commit 4dec107

Please sign in to comment.