Skip to content

Conversation

MGibson1
Copy link
Member

@MGibson1 MGibson1 commented Dec 13, 2020

Overview

Offering copying of totp from context menu covers only one method-of-use. Offering another quick-copy button on the tabs/cipher list view closes this gap.

Files Changed

action-buttons are responsible for populating the quick-action buttons to the right of cipher names in the cipher list view.

  • action-buttons.component.html: add another view to copy configured totp. Uses loginView.hasTotp to verify plaintext copy is allowed and valid.
  • action-buttons.component.ts: Converts totp configuration code to totp, copies that password to the clipboard, and pushes a notification that a hidden field was copied.

Screenshots

With and without Totp

image

Draft Reason

Waiting on bitwarden/jslib#225

@MGibson1 MGibson1 requested a review from a team December 13, 2020 06:39
@MGibson1 MGibson1 force-pushed the add-quick-totp-copy branch 4 times, most recently from 0c0af35 to 8338475 Compare December 13, 2020 14:13
@MGibson1 MGibson1 force-pushed the add-quick-totp-copy branch from 8338475 to ef46f8c Compare December 14, 2020 18:58
Copy link
Contributor

@cscharf cscharf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to consider proper permissions/capabilities (not just the existence of a TOTP value configured).

see: https://github.com/bitwarden/jslib/blob/master/src/angular/components/view.component.ts#L92

Copy link
Contributor

@cscharf cscharf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, will approve after the jslib change is merged, updated + successful build

@MGibson1 MGibson1 marked this pull request as ready for review December 15, 2020 16:25
@MGibson1 MGibson1 requested a review from cscharf December 15, 2020 16:25
@MGibson1 MGibson1 merged commit 29c624e into master Dec 15, 2020
@MGibson1 MGibson1 deleted the add-quick-totp-copy branch December 15, 2020 16:26
@ajayyy
Copy link

ajayyy commented Dec 23, 2020

Should this be hidden if you don't have premium?

@MGibson1
Copy link
Member Author

@ajayyy I decided not to do that since the CipherView doesn't hide it. It might make sense to add mouseover text that it's a premium feature.

addisonbeck pushed a commit that referenced this pull request May 5, 2022
* Fix radiobutton names

* Add role=radiogroup

* Add aria-labelledby
eliykat pushed a commit that referenced this pull request Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants