Sha256: f0bd85d4b0dc3c171daba356563019fa1420911b7221f51b6d52425bb2165361

Contents?: true

Size: 597 Bytes

Versions: 87

Compression:

Stored size: 597 Bytes

Contents

/**
 * @ngdoc service
 * @name  Bastion.repository.service:downloadPolicy
 *
 * @requires translate
 *
 * @description
 *   Provides a downloadPolicy for repositories
 */
angular.module('Bastion.repositories').service('DownloadPolicy',
    ['translate', function (translate) {

        this.downloadPolicies = {
            'on_demand': translate('On Demand'),
            'background': translate('Background'),
            'immediate': translate('Immediate')
        };

        this.downloadPolicyName = function (policy) {
            return this.downloadPolicies[policy];
        };
    }]
);

Version data entries

87 entries across 87 versions & 1 rubygems

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