Sha256: d8606ed1d405db4ff16eebadb70a6c88e1390a7d1cf539b45f82406104c5f998
Contents?: true
Size: 1.34 KB
Versions: 67
Compression:
Stored size: 1.34 KB
Contents
/** * @ngdoc object * @name Bastion.repositories.controller:ProductRepositoriesReclaimSpaceModalController * * @requires $scope * @requires $state * @requires translate * @requires Notification * @requires RepositoryBulkAction * @requires $uibModalInstance * @requires reclaimParams * * @description * A controller for the modal that warns about reclaiming on demand repository space */ angular.module('Bastion.repositories').controller('ProductRepositoriesReclaimSpaceModalController', ['$scope', '$state', 'translate', 'Notification', 'RepositoryBulkAction', '$uibModalInstance', 'reclaimParams', function ($scope, $state, translate, Notification, RepositoryBulkAction, $uibModalInstance, reclaimParams) { $scope.ok = function () { RepositoryBulkAction.reclaimSpaceFromRepositories(reclaimParams, function (task) { $state.go('product.tasks.details', {taskId: task.id}); }, function (response) { angular.forEach(response.data.errors, function (error) { Notification.setErrorMessage(error); }); }); $uibModalInstance.close(); }; $scope.cancel = function () { $uibModalInstance.dismiss('cancel'); }; }] );
Version data entries
67 entries across 67 versions & 1 rubygems