renaming logins to ciphers in move
This commit is contained in:
parent
4af2edafd3
commit
de3f310082
|
@ -415,8 +415,8 @@
|
||||||
|
|
||||||
var modal = $uibModal.open({
|
var modal = $uibModal.open({
|
||||||
animation: true,
|
animation: true,
|
||||||
templateUrl: 'app/vault/views/vaultMoveLogins.html',
|
templateUrl: 'app/vault/views/vaultMoveCiphers.html',
|
||||||
controller: 'vaultMoveLoginsController',
|
controller: 'vaultMoveCiphersController',
|
||||||
size: 'sm',
|
size: 'sm',
|
||||||
resolve: {
|
resolve: {
|
||||||
ids: function () { return ids; }
|
ids: function () { return ids; }
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
angular
|
angular
|
||||||
.module('bit.vault')
|
.module('bit.vault')
|
||||||
|
|
||||||
.controller('vaultMoveLoginsController', function ($scope, apiService, $uibModalInstance, ids, $analytics,
|
.controller('vaultMoveCiphersController', function ($scope, apiService, $uibModalInstance, ids, $analytics,
|
||||||
$rootScope) {
|
$rootScope) {
|
||||||
$analytics.eventTrack('vaultMoveLoginsController', { category: 'Modal' });
|
$analytics.eventTrack('vaultMoveCiphersController', { category: 'Modal' });
|
||||||
$scope.folders = $rootScope.vaultFolders;
|
$scope.folders = $rootScope.vaultFolders;
|
||||||
$scope.count = ids.length;
|
$scope.count = ids.length;
|
||||||
|
|
||||||
$scope.save = function () {
|
$scope.save = function () {
|
||||||
$scope.savePromise = apiService.ciphers.moveMany({ ids: ids, folderId: $scope.folderId }, function () {
|
$scope.savePromise = apiService.ciphers.moveMany({ ids: ids, folderId: $scope.folderId }, function () {
|
||||||
$analytics.eventTrack('Bulk Moved Logins');
|
$analytics.eventTrack('Bulk Moved Ciphers');
|
||||||
$uibModalInstance.close($scope.folderId || null);
|
$uibModalInstance.close($scope.folderId || null);
|
||||||
}).$promise;
|
}).$promise;
|
||||||
};
|
};
|
|
@ -1,7 +1,7 @@
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" ng-click="close()" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close" ng-click="close()" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
<h4 class="modal-title">
|
<h4 class="modal-title">
|
||||||
<i class="fa fa-share"></i> Move Logins
|
<i class="fa fa-share"></i> Move Items
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<form name="form" ng-submit="form.$valid && save()" api-form="savePromise" autocomplete="off">
|
<form name="form" ng-submit="form.$valid && save()" api-form="savePromise" autocomplete="off">
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
Select a folder that you would like to move the <b>{{count}}</b> selected
|
Select a folder that you would like to move the <b>{{count}}</b> selected
|
||||||
<span ng-pluralize count="count" when="{'1': 'login', 'other': 'logins'}"></span> to.
|
<span ng-pluralize count="count" when="{'1': 'item', 'other': 'items'}"></span> to.
|
||||||
</p>
|
</p>
|
||||||
<div class="form-group" show-errors>
|
<div class="form-group" show-errors>
|
||||||
<label for="folder">Folder</label>
|
<label for="folder">Folder</label>
|
|
@ -225,7 +225,7 @@
|
||||||
<script src="app/vault/vaultShareCipherController.js"></script>
|
<script src="app/vault/vaultShareCipherController.js"></script>
|
||||||
<script src="app/vault/vaultSharedController.js"></script>
|
<script src="app/vault/vaultSharedController.js"></script>
|
||||||
<script src="app/vault/vaultLoginCollectionsController.js"></script>
|
<script src="app/vault/vaultLoginCollectionsController.js"></script>
|
||||||
<script src="app/vault/vaultMoveLoginsController.js"></script>
|
<script src="app/vault/vaultMoveCiphersController.js"></script>
|
||||||
<script src="app/vault/vaultAttachmentsController.js"></script>
|
<script src="app/vault/vaultAttachmentsController.js"></script>
|
||||||
|
|
||||||
<script src="app/organization/organizationModule.js"></script>
|
<script src="app/organization/organizationModule.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue