Sha256: bc87e513e5b5342fd0502d6cf6f759fd8e8f8ca5b0215478885dbd1818c89d63
Contents?: true
Size: 1.63 KB
Versions: 11
Compression:
Stored size: 1.63 KB
Contents
/** * @ngdoc object * @name Bastion.gpg-keys.controller:GPGKeysController * * @requires $scope * @requires $location * @requires Nutupane * @requires GPGKey * @requires CurrentOrganization * * @description * Provides the functionality specific to GPGKeys for use with the Nutupane UI pattern. * Defines the columns to display and the transform function for how to generate each row * within the table. */ angular.module('Bastion.gpg-keys').controller('GPGKeysController', ['$scope', '$location', 'Nutupane', 'GPGKey', 'CurrentOrganization', function ($scope, $location, Nutupane, GPGKey, CurrentOrganization) { var params = { 'organization_id': CurrentOrganization, 'search': $location.search().search || "", 'sort_by': 'name', 'sort_order': 'ASC', 'paged': true }; var nutupane = new Nutupane(GPGKey, params); $scope.table = nutupane.table; $scope.panel = {loading: false}; $scope.removeRow = nutupane.removeRow; $scope.controllerName = 'katello_gpg_keys'; if ($scope.$state.current.collapsed) { $scope.panel.loading = true; } $scope.table.openGPGKey = function (gpgKey) { $scope.panel.loading = true; $scope.transitionTo('gpg-keys.details.info', {gpgKeyId: gpgKey.id}); }; $scope.transitionToNewGPGKey = function () { $scope.panel.loading = true; $scope.transitionTo('gpg-keys.new'); }; $scope.table.closeItem = function () { $scope.transitionTo('gpg-keys.index'); }; }] );
Version data entries
11 entries across 11 versions & 1 rubygems