Sha256: 7ab614246099ce600b39f6086050468d6cb3cfd42928ef187d0edab5292feae4
Contents?: true
Size: 917 Bytes
Versions: 179
Compression:
Stored size: 917 Bytes
Contents
(function () { 'use strict'; /** * @ngdoc controller * @name Bastion.activation-keys.controller:ActivationKeyCopyController * * @description * For copying a host collection. */ function ActivationKeyCopyController($scope, ActivationKey, Notification) { $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) { Notification.setErrorMessage(response.data.displayMessage); }); }; } angular .module('Bastion.activation-keys') .controller('ActivationKeyCopyController', ActivationKeyCopyController); ActivationKeyCopyController.$inject = ['$scope', 'ActivationKey', 'Notification']; })();
Version data entries
179 entries across 179 versions & 1 rubygems