Sha256: f9d0f54645cfc282978a9967d72a76dee9365c3992e5773662489a9687d6ba5f

Contents?: true

Size: 1.46 KB

Versions: 98

Compression:

Stored size: 1.46 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';
            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

98 entries across 98 versions & 1 rubygems

Version Path
katello-4.10.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.9.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.10.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.10.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.8.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.9.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.8.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.9.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.7.6 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.8.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.9.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.9.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.8.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.7.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.8.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.8.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.7.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.8.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.7.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js
katello-4.7.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js