copy password from vault listings
This commit is contained in:
parent
366506555a
commit
c094a26cbf
|
@ -57,7 +57,8 @@ angular
|
||||||
favorite: encryptedCipher.Favorite,
|
favorite: encryptedCipher.Favorite,
|
||||||
edit: encryptedCipher.Edit,
|
edit: encryptedCipher.Edit,
|
||||||
name: _service.decryptProperty(encryptedCipher.Data.Name, key, false),
|
name: _service.decryptProperty(encryptedCipher.Data.Name, key, false),
|
||||||
username: _service.decryptProperty(encryptedCipher.Data.Username, key, true)
|
username: _service.decryptProperty(encryptedCipher.Data.Username, key, true),
|
||||||
|
password: _service.decryptProperty(encryptedCipher.Data.Password, key, true)
|
||||||
};
|
};
|
||||||
|
|
||||||
return login;
|
return login;
|
||||||
|
|
|
@ -118,6 +118,11 @@
|
||||||
return item.name.toLowerCase();
|
return item.name.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.clipboardError = function (e) {
|
||||||
|
alert('Your web browser does not support easy clipboard copying. ' +
|
||||||
|
'Edit the login and copy it manually instead.');
|
||||||
|
};
|
||||||
|
|
||||||
$scope.collapseExpand = function (folder, favorite) {
|
$scope.collapseExpand = function (folder, favorite) {
|
||||||
if (!$localStorage.collapsedFolders) {
|
if (!$localStorage.collapsedFolders) {
|
||||||
$localStorage.collapsedFolders = {};
|
$localStorage.collapsedFolders = {};
|
||||||
|
@ -147,6 +152,7 @@
|
||||||
login.folderId = returnVal.data.folderId;
|
login.folderId = returnVal.data.folderId;
|
||||||
login.name = returnVal.data.name;
|
login.name = returnVal.data.name;
|
||||||
login.username = returnVal.data.username;
|
login.username = returnVal.data.username;
|
||||||
|
login.password = returnVal.data.password;
|
||||||
login.favorite = returnVal.data.favorite;
|
login.favorite = returnVal.data.favorite;
|
||||||
|
|
||||||
sortScopedLoginData();
|
sortScopedLoginData();
|
||||||
|
|
|
@ -47,6 +47,11 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$scope.clipboardError = function (e) {
|
||||||
|
alert('Your web browser does not support easy clipboard copying. ' +
|
||||||
|
'Edit the login and copy it manually instead.');
|
||||||
|
};
|
||||||
|
|
||||||
$scope.filterByCollection = function (collection) {
|
$scope.filterByCollection = function (collection) {
|
||||||
return function (cipher) {
|
return function (cipher) {
|
||||||
if (!cipher.collectionIds || !cipher.collectionIds.length) {
|
if (!cipher.collectionIds || !cipher.collectionIds.length) {
|
||||||
|
@ -97,6 +102,7 @@
|
||||||
login.folderId = rootLogin.folderId = returnVal.data.folderId;
|
login.folderId = rootLogin.folderId = returnVal.data.folderId;
|
||||||
login.name = rootLogin.name = returnVal.data.name;
|
login.name = rootLogin.name = returnVal.data.name;
|
||||||
login.username = rootLogin.username = returnVal.data.username;
|
login.username = rootLogin.username = returnVal.data.username;
|
||||||
|
login.password = rootLogin.username = returnVal.data.password;
|
||||||
login.favorite = rootLogin.favorite = returnVal.data.favorite;
|
login.favorite = rootLogin.favorite = returnVal.data.favorite;
|
||||||
}
|
}
|
||||||
else if (returnVal.action === 'partialEdit') {
|
else if (returnVal.action === 'partialEdit') {
|
||||||
|
|
|
@ -71,6 +71,12 @@
|
||||||
<i class="fa fa-fw fa-cubes"></i> Collections
|
<i class="fa fa-fw fa-cubes"></i> Collections
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li ng-show="login.password">
|
||||||
|
<a href="#" stop-click ngclipboard ngclipboard-error="clipboardError(e)"
|
||||||
|
data-clipboard-text="{{login.password}}">
|
||||||
|
<i class="fa fa-fw fa-clipboard"></i> Copy Password
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li ng-show="login.edit">
|
<li ng-show="login.edit">
|
||||||
<a href="#" stop-click ng-click="deleteLogin(login)" class="text-red">
|
<a href="#" stop-click ng-click="deleteLogin(login)" class="text-red">
|
||||||
<i class="fa fa-fw fa-trash"></i> Delete
|
<i class="fa fa-fw fa-trash"></i> Delete
|
||||||
|
@ -159,6 +165,12 @@
|
||||||
<i class="fa fa-fw fa-cubes"></i> Collections
|
<i class="fa fa-fw fa-cubes"></i> Collections
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li ng-show="login.password">
|
||||||
|
<a href="#" stop-click ngclipboard ngclipboard-error="clipboardError(e)"
|
||||||
|
data-clipboard-text="{{login.password}}">
|
||||||
|
<i class="fa fa-fw fa-clipboard"></i> Copy Password
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li ng-show="login.edit">
|
<li ng-show="login.edit">
|
||||||
<a href="#" stop-click ng-click="deleteLogin(login)" class="text-red">
|
<a href="#" stop-click ng-click="deleteLogin(login)" class="text-red">
|
||||||
<i class="fa fa-fw fa-trash"></i> Delete
|
<i class="fa fa-fw fa-trash"></i> Delete
|
||||||
|
|
|
@ -67,6 +67,12 @@
|
||||||
<i class="fa fa-fw fa-cubes"></i> Collections
|
<i class="fa fa-fw fa-cubes"></i> Collections
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li ng-show="login.password">
|
||||||
|
<a href="#" stop-click ngclipboard ngclipboard-error="clipboardError(e)"
|
||||||
|
data-clipboard-text="{{login.password}}">
|
||||||
|
<i class="fa fa-fw fa-clipboard"></i> Copy Password
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li ng-show="login.edit">
|
<li ng-show="login.edit">
|
||||||
<a href="#" stop-click ng-click="removeLogin(login, collection)"
|
<a href="#" stop-click ng-click="removeLogin(login, collection)"
|
||||||
ng-if="collection.id" class="text-red">
|
ng-if="collection.id" class="text-red">
|
||||||
|
|
Loading…
Reference in New Issue