Sha256: ffffc1fc2c773774a8e2c227ba215e1645653d7c5aa232fde15c5a9003ad9cf5
Contents?: true
Size: 1.1 KB
Versions: 23
Compression:
Stored size: 1.1 KB
Contents
(function () { 'use strict'; /** * @ngdoc controller * @name Bastion.host-collections.controller:HostCollectionCopyController * * @description * For copying a host collection. * * @requires translate * */ function HostCollectionCopyController($scope, Notification, HostCollection, translate) { $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); }); }; // Labels so breadcrumb strings can be translated $scope.label = translate('Create Copy'); } angular .module('Bastion.host-collections') .controller('HostCollectionCopyController', HostCollectionCopyController); HostCollectionCopyController.$inject = ['$scope', 'Notification', 'HostCollection', 'translate']; })();
Version data entries
23 entries across 23 versions & 1 rubygems