1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-08 11:33:28 +00:00

renaming logins to ciphers in move

This commit is contained in:
Kyle Spearrin
2017-10-11 09:45:52 -04:00
parent 4af2edafd3
commit de3f310082
4 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,28 @@
angular
.module('bit.vault')
.controller('vaultMoveCiphersController', function ($scope, apiService, $uibModalInstance, ids, $analytics,
$rootScope) {
$analytics.eventTrack('vaultMoveCiphersController', { category: 'Modal' });
$scope.folders = $rootScope.vaultFolders;
$scope.count = ids.length;
$scope.save = function () {
$scope.savePromise = apiService.ciphers.moveMany({ ids: ids, folderId: $scope.folderId }, function () {
$analytics.eventTrack('Bulk Moved Ciphers');
$uibModalInstance.close($scope.folderId || null);
}).$promise;
};
$scope.folderSort = function (item) {
if (!item.id) {
return '!';
}
return item.name.toLowerCase();
};
$scope.close = function () {
$uibModalInstance.dismiss('cancel');
};
});