Skip to content

Commit

Permalink
Issue #137 - "Update All" button should be disabled when the update s…
Browse files Browse the repository at this point in the history
…uccessfully finished.

Disabled "Update All" button when there is no package in the list to be updated.

Signed-off-by: Bianca Carvalho <bianca@linux.vnet.ibm.com>
  • Loading branch information
Bianca Carvalho authored and danielhb committed Oct 27, 2016
1 parent c071b52 commit d4e4d35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/js/src/gingerbase.host-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@ gingerbase.init_update_packages = function(){
$(".wok-mask").fadeOut(300, function() {});
$("#update-packages").prop('disabled', true);
packageList = softwareUpdates;
if (packageList.length == 0) {
$("#update-all-packages").prop('disabled', true);
}
var htmlRow = "";
$.each( softwareUpdates, function( key, value ) {
htmlRow += "<tr><td>" + value.package_name + "</td><td></td><td>" + value.version + "</td><td>" + value.arch + "</td><td>" + value.repository + "</td></tr>";
Expand Down

0 comments on commit d4e4d35

Please sign in to comment.