Sha256: df3c4bb13a6ea0c9753c684188a8c5bf82f57983f73fd7434e3288a9e2a13475

Contents?: true

Size: 1.19 KB

Versions: 149

Compression:

Stored size: 1.19 KB

Contents

/**
 * @ngdoc service
 * @name  Bastion.content-views.factory:ContentViewComponent
 *
 * @requires BastionResource
 * @requires CurrentOrganization
 *
 * @description
 *   Provides a BastionResource for interacting with content view components.
 */
angular.module('Bastion.content-views').factory('ContentViewComponent',
    ['BastionResource', 'CurrentOrganization',
    function (BastionResource, CurrentOrganization) {

        return BastionResource('katello/api/v2/content_views/:compositeContentViewId/content_view_components/:id/:action',
            {id: '@id', compositeContentViewId: '@compositeContentViewId', 'organization_id': CurrentOrganization},
            {
                update: {method: 'PUT'},
                removeComponents: {
                    method: 'PUT',
                    isArray: false,
                    url: 'katello/api/v2/content_views/:compositeContentViewId/content_view_components/remove'
                },
                addComponents: {
                    method: 'PUT',
                    isArray: false,
                    url: 'katello/api/v2/content_views/:compositeContentViewId/content_view_components/add'
                }
            }
        );
    }]
);

Version data entries

149 entries across 149 versions & 1 rubygems

Version Path
katello-3.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.13.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.13.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.13.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.12.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.12.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.11.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.10.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.10.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.10.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js
katello-3.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js