Sha256: 5153753478f7fc7ab5ea6ff3e7040ad0d454ea8aba9cf1b99c81f890d034b649
Contents?: true
Size: 1.64 KB
Versions: 20
Compression:
Stored size: 1.64 KB
Contents
/** * @ngdoc object * @name Bastion.docker-tags.controller:DockerTagsDetailsController * * @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('DockerTagsDetailsController', ['$scope', '$location', 'Nutupane', 'DockerTag', 'CurrentOrganization', 'ApiErrorHandler', function ($scope, $location, Nutupane, DockerTag, CurrentOrganization, ApiErrorHandler) { $scope.successMessages = []; $scope.errorMessages = []; $scope.panel = { error: false, loading: true }; 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[]': _.pluck($scope.tag['related_tags'], 'id') }; var nutupane = new Nutupane(DockerTag, params); $scope.table = nutupane.table; $scope.panel.loading = false; nutupane.refresh(); }); } ]);
Version data entries
20 entries across 20 versions & 1 rubygems