diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2014-12-09 16:14:41 +0100 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2014-12-09 16:14:41 +0100 |
commit | 03527dbef9cebebe7da177427475b4d8a77f4d5a (patch) | |
tree | 6658304bb3e4b898b0c6d4bd4e243739c85e614d | |
parent | 0c7c3aa04753a9c6dd61f98f5aa01d5fbe2f6321 (diff) |
Fix missing bad commit logic.2014.12.2
Change-Id: Iad0d9ae755a0c5f8887761e478a2ac8bfd125480
-rw-r--r-- | app/dashboard/static/js/linaro-boots-id-1.1.4.js | 11 | ||||
-rw-r--r-- | app/dashboard/static/js/linaro-builds-job-kernel-defconfig-1.0.7.js | 11 |
2 files changed, 18 insertions, 4 deletions
diff --git a/app/dashboard/static/js/linaro-boots-id-1.1.4.js b/app/dashboard/static/js/linaro-boots-id-1.1.4.js index 0bda670..fb6e756 100644 --- a/app/dashboard/static/js/linaro-boots-id-1.1.4.js +++ b/app/dashboard/static/js/linaro-boots-id-1.1.4.js @@ -539,8 +539,15 @@ function createBootBisectTable(data) { } $('#bisect-loading-div').remove(); - $('#bad-commit').empty().append( - '<span class="text-danger">' + badCommit + '</span>'); + if (badCommit !== null) { + $('#bad-commit').empty().append( + '<span class="text-danger">' + badCommit + '</span>'); + } else { + $('#bad-commit').empty().append( + '<span class="text-warning">' + + 'No corresponding bad commit found</span>' + ); + } if (goodCommit !== null) { $('#good-commit').empty().append( '<span class="text-success">' + goodCommit + '</span>'); diff --git a/app/dashboard/static/js/linaro-builds-job-kernel-defconfig-1.0.7.js b/app/dashboard/static/js/linaro-builds-job-kernel-defconfig-1.0.7.js index dee478c..1c00fe9 100644 --- a/app/dashboard/static/js/linaro-builds-job-kernel-defconfig-1.0.7.js +++ b/app/dashboard/static/js/linaro-builds-job-kernel-defconfig-1.0.7.js @@ -478,8 +478,15 @@ function createBisectTable(data) { } $('#bisect-loading-div').remove(); - $('#bad-commit').empty().append( - '<span class="text-danger">' + badCommit + '</span>'); + if (badCommit !== null) { + $('#bad-commit').empty().append( + '<span class="text-danger">' + badCommit + '</span>'); + } else { + $('#bad-commit').empty().append( + '<span class="text-warning">' + + 'No corresponding bad commit found</span>' + ); + } if (goodCommit !== null) { $('#good-commit').empty().append( '<span class="text-success">' + goodCommit + '</span>'); |