Browse Source

Merge pull request #289 from Oliv4945/copyButtons

Add username & password copy buttons to list/search
pull/290/head
Sander 6 months ago
parent
commit
db30e8aa9d
No account linked to committer's email address
2 changed files with 8 additions and 2 deletions
  1. 4
    1
      html/browser_action/views/list.html
  2. 4
    1
      html/browser_action/views/search.html

+ 4
- 1
html/browser_action/views/list.html View File

@@ -8,7 +8,10 @@
8 8
             {{credential.label}}
9 9
         </div>
10 10
         <div class="info">
11
-            {{credential.username}} in {{ credential.account.vault.name}}
11
+            {{credential.username}} in {{ credential.account.vault.name}} <copy-text text="credential.username"></copy-text>
12
+        </div>
13
+        <div class="extra" ng-if="credential.password">
14
+            {{'password' | translate}}: ******** <copy-text text="credential.password"></copy-text>
12 15
         </div>
13 16
         <div class="extra" ng-if="credential.otp.secret">
14 17
             {{'one_time_password' | translate}}: <div otp-generator secret="credential.otp.secret"></div>

+ 4
- 1
html/browser_action/views/search.html View File

@@ -22,7 +22,10 @@
22 22
             {{credential.label}}
23 23
         </div>
24 24
         <div class="info">
25
-            {{credential.username}}
25
+            {{credential.username}} <copy-text text="credential.username"></copy-text>
26
+        </div>
27
+        <div class="extra" ng-if="credential.password">
28
+            {{'password' | translate}}: ******** <copy-text text="credential.password"></copy-text>
26 29
         </div>
27 30
         <div class="extra" ng-if="credential.otp.secret">
28 31
             {{'one_time_password' | translate}}: <div otp-generator secret="credential.otp.secret"></div>

Loading…
Cancel
Save