Sha256: f5c60e8adbaf975e3d30c083037bd037e15487976d5a32c2347101d8ea22f4fc
Contents?: true
Size: 1.73 KB
Versions: 54
Compression:
Stored size: 1.73 KB
Contents
/** * @ngdoc object * @name Bastion.docker-tags.controller:DockerTagDetailsController * * @requires $scope * @requires $location * @requires DockerTag * @requires CurrentOrganization * * @description * Provides the functionality for the docker tags details environments list. */ angular.module('Bastion.docker-tags').controller('DockerTagEnvironmentsController', ['$scope', '$location', 'Nutupane', 'DockerTag', 'CurrentOrganization', function ($scope, $location, Nutupane, DockerTag, CurrentOrganization) { var params = { 'organization_id': CurrentOrganization, 'search': $location.search().search || "", 'sort_by': 'name', 'sort_order': 'ASC', 'paged': false }; var nutupane = new Nutupane(DockerTag, params, null, {disableAutoLoad: true}); var renderTable = function () { var ids = _.map($scope.tag.related_tags, 'id'); var newParams = { 'organization_id': CurrentOrganization, 'search': $location.search().search || "", 'sort_by': 'name', 'sort_order': 'ASC', 'paged': false, 'ids[]': ids }; $scope.table = nutupane.table; nutupane.setParams(newParams); $scope.panel.loading = false; if (!_.isEmpty(ids)) { nutupane.refresh(); } }; $scope.controllerName = 'katello_docker_tags'; if ($scope.tag) { $scope.panel.loading = false; } if ($scope.tag && $scope.tag.related_tags) { renderTable(); } else { $scope.tag.$promise.then(renderTable); } } ]);
Version data entries
54 entries across 54 versions & 1 rubygems