interface for deleting duplicates

This commit is contained in:
Athou
2013-07-08 16:38:09 +02:00
parent c8ff6e1d20
commit 52270d50d9
6 changed files with 146 additions and 2 deletions

View File

@@ -1204,6 +1204,34 @@ function($scope, $state, $stateParams, $dialog, AdminUsersService) {
};
}]);
module.controller('ManageDuplicateFeedsCtrl', [
'$scope', 'AdminCleanupService',
function($scope, AdminCleanupService) {
$scope.limit = 10;
$scope.page = 0;
$scope.mergeData = {};
$scope.refreshData = function() {
AdminCleanupService.findDuplicateFeeds({
limit : $scope.limit,
page : $scope.page
}, function(data) {
$scope.counts = data;
});
};
$scope.focus = function(count) {
$scope.current = count;
};
$scope.merge = function() {
AdminCleanupService.mergeFeeds($scope.mergeData, function() {
alert('done!');
});
};
}]);
module.controller('SettingsCtrl', ['$scope', '$location', 'SettingsService', 'AnalyticsService', 'ServerService',
function($scope, $location, SettingsService, AnalyticsService, ServerService) {