Sha256: bbab8604e74e042cbbdba49e6250769698cfd21abfdd2420eea84178f8cbf50a
Contents?: true
Size: 1.36 KB
Versions: 98
Compression:
Stored size: 1.36 KB
Contents
/** * @ngdoc object * @name Bastion.host-collections.controller:HostCollectionsController * * @requires $scope * @requires $location * @requires translate * @requires Nutupane * @requires HostCollection * @requires CurrentOrganization * * @description * Provides the functionality specific to host collections 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.host-collections').controller('HostCollectionsController', ['$scope', '$location', 'translate', 'Nutupane', 'HostCollection', 'CurrentOrganization', function ($scope, $location, translate, Nutupane, HostCollection, CurrentOrganization) { var params = { 'organization_id': CurrentOrganization, 'search': $location.search().search || "", 'sort_by': 'name', 'sort_order': 'ASC', 'paged': true }; var nutupane = new Nutupane(HostCollection, params); $scope.controllerName = 'katello_host_collections'; nutupane.primaryOnly = true; $scope.table = nutupane.table; $scope.removeRow = nutupane.removeRow; $scope.$on("updateContentHostCollection", function (event, hostCollectionRow) { $scope.table.replaceRow(hostCollectionRow); }); }] );
Version data entries
98 entries across 98 versions & 1 rubygems