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

Version Path
katello-3.7.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.7.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.8.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.8.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.8.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.7.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.8.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.7.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.7.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.5.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.6.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.6.0.1.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.6.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.6.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.5.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.5.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.5.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.5.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js
katello-3.5.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js