Sha256: f6d60388685fe9aeac95bc86f03826cdf181fa611a15784e3fdad799abd96850
Contents?: true
Size: 961 Bytes
Versions: 18
Compression:
Stored size: 961 Bytes
Contents
(function () { 'use strict'; /** * @ngdoc controller * @name Bastion.activation-keys.controller:ActivationKeyCopyController * * @description * For copying a host collection. */ function ActivationKeyCopyController($scope, ActivationKey) { $scope.successMessages = []; $scope.errorMessages = []; $scope.copy = function (newName) { ActivationKey.copy({id: $scope.activationKey.id, 'new_name': newName}, function (response) { $scope.transitionTo('activation-key.info', {activationKeyId: response.id}); }, function (response) { $scope.copyErrorMessages.push(response.data.displayMessage); }); }; } angular .module('Bastion.activation-keys') .controller('ActivationKeyCopyController', ActivationKeyCopyController); ActivationKeyCopyController.$inject = ['$scope', 'ActivationKey']; })();
Version data entries
18 entries across 18 versions & 1 rubygems