Cleanup display of image commands to be better shared
Also moves the work into a TS component
This commit is contained in:
parent
7f436bb54a
commit
1d60414a23
10 changed files with 41 additions and 51 deletions
|
@ -13,9 +13,7 @@ angular.module('quay').directive('imageViewLayer', function () {
|
|||
'image': '=image',
|
||||
'images': '=images'
|
||||
},
|
||||
controller: function($scope, $element, ImageMetadataService) {
|
||||
$scope.getDockerfileCommand = ImageMetadataService.getDockerfileCommand;
|
||||
|
||||
controller: function($scope, $element) {
|
||||
$scope.getClass = function() {
|
||||
var index = $.inArray($scope.image, $scope.images);
|
||||
if (index < 0) {
|
||||
|
|
Reference in a new issue