Sha256: 32100aa196a5d7f036c1d821b9894bbe6aa66c8017b8b32cc28813a81fa582d2
Contents?: true
Size: 1.47 KB
Versions: 6
Compression:
Stored size: 1.47 KB
Contents
(function () { /** * @ngdoc object * @name Bastion.content-views.controller:ContentViewAvailableFileRepositoriesController * * @requires $scope * @requires Repository * @requires Nutupane * @requires CurrentOrganization * @requires ContentViewRepositoriesUtil * * @description * Provides UI functionality add file repositories to a content view */ function ContentViewAvailableFileRepositoriesController($scope, Repository, Nutupane, CurrentOrganization, ContentViewRepositoriesUtil) { var nutupane; ContentViewRepositoriesUtil($scope); nutupane = new Nutupane(Repository, { 'organization_id': CurrentOrganization, 'library': true, 'content_type': 'file', 'content_view_id': $scope.$stateParams.contentViewId, 'available_for': 'content_view' }, 'queryUnpaged'); nutupane.load(); $scope.table = nutupane.table; $scope.addRepositories = function (contentView) { $scope.addSelectedRepositoriesToContentView(nutupane, contentView); }; } angular .module('Bastion.content-views') .controller('ContentViewAvailableFileRepositoriesController', ContentViewAvailableFileRepositoriesController); ContentViewAvailableFileRepositoriesController.$inject = [ '$scope', 'Repository', 'Nutupane', 'CurrentOrganization', 'ContentViewRepositoriesUtil' ]; })();
Version data entries
6 entries across 6 versions & 1 rubygems