Sha256: ef12457439ef5add5ba3f016d8e84a2ad2a8da955e57f102cb507b7aaafcd3f2
Contents?: true
Size: 957 Bytes
Versions: 179
Compression:
Stored size: 957 Bytes
Contents
(function () { 'use strict'; /** * @ngdoc controller * @name Bastion.host-collections.controller:HostCollectionCopyController * * @description * For copying a host collection. */ function HostCollectionCopyController($scope, Notification, HostCollection) { $scope.copy = function (newName) { HostCollection.copy({id: $scope.$stateParams.hostCollectionId, 'host_collection': {name: newName}}, function (response) { $scope.transitionTo('host-collection.info', {hostCollectionId: response.id}); }, function (response) { Notification.setErrorMessage(response.data.displayMessage); }); }; } angular .module('Bastion.host-collections') .controller('HostCollectionCopyController', HostCollectionCopyController); HostCollectionCopyController.$inject = ['$scope', 'Notification', 'HostCollection']; })();
Version data entries
179 entries across 179 versions & 1 rubygems