tobegit3hub / pirate

Private admin dashboard for docker distribution
Creative Commons Zero v1.0 Universal
42 stars 4 forks source link

images is not refreshed when image is deleted #10

Closed larrycai closed 9 years ago

larrycai commented 9 years ago

the image is deleted for issue #9 now, but it doesn't

  1. trigger the status update
  2. refresh the image list
larrycai commented 9 years ago

@tobegit3hub code is in controller.js, I don't know whether below codes are not triggered

}).success(function(data, status, headers, config) {
  if (status == 200) {
    alert_success("Delete image " + id.substring(0,12));
    $http.get('/dockerregistryapi/images/json').success(function(data) {
      $scope.images = data;
    });
  } else {
    alert_error("Delete image " + id.substring(0,12));
  }
}).error(function(data, status, headers, config) {
  alert_error("Delete image " + id.substring(0,12));
});