Sha256: 0ba617af3432e669af8e42346eef2c0599a03d8dec6d72b01cd7bc38fe601f4c
Contents?: true
Size: 1.09 KB
Versions: 20
Compression:
Stored size: 1.09 KB
Contents
/** * @ngdoc object * @name Bastion.content-views.controller:ContentViewsController * * @requires $scope * @requires Nutupane * @requires ContentView * @requires CurrentOrganization * * @description * Provides the functionality specific to ContentViews 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.content-views').controller('ContentViewsController', ['$scope', 'Nutupane', 'ContentView', 'CurrentOrganization', function ($scope, Nutupane, ContentView, CurrentOrganization) { var nutupane = new Nutupane(ContentView, { 'nondefault': true, 'organization_id': CurrentOrganization, 'sort_by': 'name', 'sort_order': 'ASC' }); $scope.table = nutupane.table; $scope.removeRow = nutupane.removeRow; $scope.controllerName = 'katello_content_views'; $scope.table.closeItem = function () { $scope.transitionTo('content-views.index'); }; }] );
Version data entries
20 entries across 20 versions & 1 rubygems