Sha256: bf52cc8b5c8cfe2b5d3f05f62c98b4d44dbb27b7da280658179a80e9739af28b
Contents?: true
Size: 1.73 KB
Versions: 10
Compression:
Stored size: 1.73 KB
Contents
/** * @ngdoc object * @name Bastion.docker-tags.controller:DockerTagDetailsController * * @requires $scope * @requires $location * @requires DockerTag * @requires CurrentOrganization * @requires ApiErrorHandler * * @description * Provides the functionality for the docker tags details action pane. */ angular.module('Bastion.docker-tags').controller('DockerTagDetailsController', ['$scope', '$location', 'Nutupane', 'DockerTag', 'CurrentOrganization', 'ApiErrorHandler', function ($scope, $location, Nutupane, DockerTag, CurrentOrganization, ApiErrorHandler) { $scope.successMessages = []; $scope.errorMessages = []; $scope.panel = { error: false, loading: true }; $scope.table = {}; if ($scope.tag) { $scope.panel.loading = false; } $scope.tag = DockerTag.get({id: $scope.$stateParams.tagId}, function () { $scope.panel.loading = false; }, function (response) { $scope.panel.loading = false; ApiErrorHandler.handleGETRequestErrors(response, $scope); }); $scope.tag.$promise.then(function () { var params = { 'organization_id': CurrentOrganization, 'search': $location.search().search || "", 'sort_by': 'name', 'sort_order': 'ASC', 'paged': false, 'ids[]': _.map($scope.tag['related_tags'], 'uuid') }; var nutupane = new Nutupane(DockerTag, params); $scope.controllerName = 'katello_docker_tags'; $scope.table = nutupane.table; $scope.panel.loading = false; nutupane.refresh(); }); } ]);
Version data entries
10 entries across 10 versions & 1 rubygems