Sha256: 78b095186d792144208fddf5c49e146c91204584e7f4ce0a2824cb8d5a054346

Contents?: true

Size: 1.06 KB

Versions: 72

Compression:

Stored size: 1.06 KB

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,
                              'full_result': true,
                              'include_available_content': true
                             }, function (response) {
            $scope.products = response.results;
            $scope.displayArea.working = false;
        });

    }]
);

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
katello-3.13.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.13.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.13.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.13.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.13.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.12.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.12.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.11.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.10.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.10.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.10.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js
katello-3.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js