Sha256: 5d0bbd2f9a017a02dcbacbb2bf6a19f9257c0f74161a1ed3775c8d8ec693716d
Contents?: true
Size: 1.14 KB
Versions: 32
Compression:
Stored size: 1.14 KB
Contents
/** * @ngdoc object * @name Bastion.content-hosts.controller:ContentHostPackagesInstalledController * * @requires $scope * @resource $timeout * @resource $window * @requires HostPackage * @requires translate * @requires Nutupane * * @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', function ($scope, $timeout, $window, HostPackage, translate, Nutupane) { var packagesNutupane; $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.masterOnly = true; $scope.table = packagesNutupane.table; $scope.table.contentHost = $scope.contentHost; } ]);
Version data entries
32 entries across 32 versions & 1 rubygems