Sha256: 837d614247311d6af09d0588daae5a485777846a0efcab5069853fe23f4f8f7a
Contents?: true
Size: 1.42 KB
Versions: 34
Compression:
Stored size: 1.42 KB
Contents
/** * @ngdoc object * @name Bastion.content-hosts.controller:ContentHostPackagesInstalledController * * @requires $scope * @resource $timeout * @resource $window * @requires HostPackage * @requires translate * @requires Nutupane * @requires BastionConfig * * @description * Provides the functionality for the content host packages list and actions. */ angular.module('Bastion.content-hosts').controller('ContentHostPackagesInstalledController', ['$scope', '$timeout', '$window', 'HostPackage', 'translate', 'Nutupane', 'BastionConfig', function ($scope, $timeout, $window, HostPackage, translate, Nutupane, BastionConfig) { var packagesNutupane; $scope.katelloAgentPresent = BastionConfig.katelloAgentPresent; $scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent; $scope.hostToolingEnabled = BastionConfig.hostToolingEnabled; $scope.removeSelectedPackages = function () { var selected = _.map($scope.table.getSelected(), 'name'); if (!$scope.working) { $scope.working = true; $scope.performPackageAction("packageRemove", selected.join(",")); } }; packagesNutupane = new Nutupane(HostPackage, {id: $scope.$stateParams.hostId}); packagesNutupane.primaryOnly = true; $scope.table = packagesNutupane.table; $scope.table.contentHost = $scope.contentHost; } ]);
Version data entries
34 entries across 34 versions & 1 rubygems