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