1
0
mirror of https://github.com/bitwarden/browser synced 2025-01-27 11:39:42 +01:00

Add actions to secure notes (view, copy) (#566)

* Add actions to secure notes (view, copy)

- I miss the ability to copy a note after searching from it, as a former
lastpass user.  This hopefully brings that back to me.

* PR review changes

- remove changes to hi/messages.json
- change "Secure Note" to just "Note"

* remove unnecessary change
This commit is contained in:
Jason Meridth 2018-03-23 20:02:43 -05:00 committed by Kyle Spearrin
parent 240f3c810e
commit 9ffb2a406d
2 changed files with 18 additions and 0 deletions

View File

@ -64,6 +64,9 @@
"copyPassword": {
"message": "Copy Password"
},
"copyNote": {
"message": "Copy Note"
},
"copyUri": {
"message": "Copy URI"
},
@ -265,6 +268,9 @@
"notes": {
"message": "Notes"
},
"note": {
"message": "Note"
},
"editItem": {
"message": "Edit Item"
},

View File

@ -45,4 +45,16 @@
<i class="fa fa-lg fa-eye"></i>
</span>
</div>
<div ng-if="$ctrl.cipher.type === $ctrl.constants.cipherType.secureNote">
<span class="btn-list" ng-click="$ctrl.onView($ctrl.cipher)" stop-prop stop-click title="{{::$ctrl.i18n.view}}"
ng-if="$ctrl.showView">
<i class="fa fa-lg fa-eye"></i>
</span>
<span class="btn-list" stop-prop stop-click title="{{::$ctrl.i18n.copyNote}}" ngclipboard
ngclipboard-error="$ctrl.clipboardError(e)"
ngclipboard-success="$ctrl.clipboardSuccess(e, $ctrl.i18n.note, 'Note')"
data-clipboard-text="{{$ctrl.cipher.notes}}" ng-class="{disabled: !$ctrl.cipher.notes}">
<i class="fa fa-lg fa-key"></i>
</span>
</div>
</div>