Sha256: 1c71259e3f99ab6c606b7e76227e1ddf52477ec6d8f2146e9ef0553d3623eee3
Contents?: true
Size: 1.99 KB
Versions: 5
Compression:
Stored size: 1.99 KB
Contents
/** * @ngdoc object * @name Bastion.docker-tags.controller:DockerTagDetailsController * * @requires $scope * @requires $location * @requires DockerTag * @requires CurrentOrganization * @requires translate * * @description * Provides the functionality for the docker tags details environments list. */ angular.module('Bastion.docker-tags').controller('DockerTagEnvironmentsController', ['$scope', '$location', 'Nutupane', 'DockerTag', 'CurrentOrganization', 'translate', function ($scope, $location, Nutupane, DockerTag, CurrentOrganization, translate) { 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); } $scope.getManifestType = function (schema) { if (schema['manifest_type'] === 'image') { return translate("Image"); } return translate("List"); }; } ]);
Version data entries
5 entries across 5 versions & 1 rubygems