Sha256: c51216875e26f1fc404183ac0323503aab0782287c2d136dabebb1b2a41b1096

Contents?: true

Size: 970 Bytes

Versions: 24

Compression:

Stored size: 970 Bytes

Contents

/**
 * @ngdoc object
 * @name  Bastion.subscriptions.controller:SubscriptionProductsController
 *
 * @requires $scope
 * @requires $state
 * @requires Subscription
 * @requires Product
 * @requires CurrentOrganization
 *
 * @description
 *   Provides the functionality for the subscription products action pane.
 */
angular.module('Bastion.subscriptions').controller('SubscriptionProductsController',
    ['$scope', '$state', 'Subscription', 'Product', 'CurrentOrganization', function ($scope, $state, Subscription, Product, CurrentOrganization) {

        $scope.displayArea = { working: true };

        Product.queryUnpaged({'organization_id': CurrentOrganization,
                              'subscription_id': $scope.$stateParams.subscriptionId,
                              enabled: true
                             }, function (response) {
            $scope.products = response.results;
            $scope.displayArea.working = false;
        });

    }]
);

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
katello-3.2.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.2.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.1.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.1.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.1.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-2.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.1.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-2.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.0.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-2.4.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.0.0.rc7 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.0.0.rc5 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-2.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.0.0.rc4 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.0.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.0.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.0.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-2.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js