Sha256: 8f20e0b813dd875c4f56290fd7ec55fcc49ef0f5d8773823285c69d481254212
Contents?: true
Size: 1.27 KB
Versions: 9
Compression:
Stored size: 1.27 KB
Contents
/** * @ngdoc object * @name Bastion.gpg-keys.controller:NewGPGKeyController * * @requires $scope * @requires GPGKey * @requires CurrentOrganization * * @description * Controls the creation of an empty GPGKey object for use by sub-controllers. */ angular.module('Bastion.gpg-keys').controller('NewGPGKeyController', ['$scope', 'GPGKey', 'CurrentOrganization', function ($scope, GPGKey, CurrentOrganization) { $scope.panel = {loading: false}; $scope.gpgKey = new GPGKey(); $scope.CurrentOrganization = CurrentOrganization; $scope.progress = {uploading: false}; $scope.contentFormType = 'paste'; $scope.uploadURL = '/katello/api/v2/gpg_keys?organization_id=' + CurrentOrganization; $scope.uploadContent = function (content) { if (content) { if (angular.isUndefined(content.errors)) { $scope.table.addRow(content); $scope.uploadStatus = 'success'; $scope.transitionTo('gpgKeys.index'); } else { $scope.errorMessages = [content.displayMessage]; $scope.uploadStatus = 'error'; } $scope.progress.uploading = false; } }; }] );
Version data entries
9 entries across 9 versions & 1 rubygems