Sha256: 12df0761534830a8bf3a40b41a3fe73c9342eb32f7d747565f6b5279641691bd

Contents?: true

Size: 1.58 KB

Versions: 22

Compression:

Stored size: 1.58 KB

Contents

/**
 * @ngdoc object
 * @name  Bastion.syncPlans.controller:SyncPlansController
 *
 * @requires $scope
 * @requires $location
 * @requires translate
 * @requires Nutupane
 * @requires SyncPlan
 * @requires CurrentOrganization
 *
 * @description
 *   Provides the functionality specific to Sync Plans for use with the Nutupane UI pattern.
 *   Defines the columns to display and the transform function for how to generate each row
 *   within the table.
 */
angular.module('Bastion.sync-plans').controller('SyncPlansController',
    ['$scope', '$location', 'translate', 'Nutupane', 'SyncPlan', 'CurrentOrganization',
        function ($scope, $location, translate, Nutupane, SyncPlan, CurrentOrganization) {
            var params, nutupane;

            params = {
                'organization_id': CurrentOrganization,
                'search': $location.search().search || "",
                'sort_by': 'name',
                'sort_order': 'ASC'
            };

            nutupane = new Nutupane(SyncPlan, params);
            $scope.controllerName = 'katello_sync_plans';

            // Labels so breadcrumb strings can be translated
            $scope.label = translate('Sync Plans');

            nutupane.primaryOnly = true;

            $scope.syncPlanTable = nutupane.table;
            $scope.removeRow = nutupane.removeRow;
            $scope.nutupane = nutupane;

            nutupane.enableSelectAllResults();

            if ($location.search()['select_all']) {
                nutupane.table.selectAllResults(true);
            }

            $scope.table = $scope.syncPlanTable;
        }]
);

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
katello-4.14.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.15.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js