Commit Graph

18 Commits

Author SHA1 Message Date
Daniel James Smith bd770c90ed
[Account Switching] Base changes for account switching (#2250)
* Pull in jslib

* Create new state models

* Create browser specific stateService

* Remove registration deprecated services, register stateService

* Replace usage of deprecated services (user, constants)

* Add missing properties to BrowserGroupingsComponentState

* Remove StorageService from initFactory

* Clear the correct state

* Add null check when restoring send-grouping state

* add remember email

* Initialize stateservice in services.module

* Fix 'lock now' not working

* Comment to remove setting defaults on install

* Pull jslib

* Remove setting defaults on install

* Bump jslib

* Pass the current userId to services when logging out

* Bump jslib

* Override vaultTimeout default on account addition

* Pull latest jslib

* Retrieve vaultTimeout from stateService

* Record activity per Account

* Add userId to logout and add fallback if not present

* Register AccountFactory

* Pass userId in messages

* Base changes for account switching di fixes (#2280)

* [bug] Null checks on Account init

* [bug] Use same stateService instance for all operations

We override the stateService in browser, but currently don't pull the background service into popup and allow jslib to create its own instance of the base StateService for jslib services.
This causes a split in in memory state between the three isntances that results in many errors, namely locking not working.

* [chore] Update jslib

* Pull in jslib

* Pull in jslib

* Pull in latest jslib to multiple stateservice inits

* Check vault states before executing processReload

* Adjust iterator

* Update native messaging to include the userId (#2290)

* Re-Add UserVerificationService

* Fix email not being remembered by base component

* Improve readability of reloadProcess

* Removed unneeded null check

* Fix constructor dependency (stateService)

* Added missing await

* Simplify dependency registration

* Fixed typos

* Reverted back to simple loop

* Use vaultTimeoutService to retrieve Timeout

Co-authored-by: Addison Beck <abeck@bitwarden.com>
Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
2022-01-27 22:22:51 +01:00
Oscar Hinton 8fe821b9a3
Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
Oscar Hinton e4aaf81816
Replace toaster library (#2210) 2021-12-07 20:42:18 +01:00
Oscar Hinton 4e1958f417
Add jslib as a "real" dependency (#1876)
* Support split jslib

* Fix tests

* Bump jslib
2021-06-07 19:25:37 +02:00
Oscar Hinton 6e9e0445de
Fix password re-prompt triggering on non-reprompt items (#1817)
* Fix password re-prompt triggering on non-reprompt items
2021-05-04 19:04:18 +02:00
Oscar Hinton cdc71dd661
Password reprompt (#1784)
* Add support for password reprompt

* Rename passwordPrompt to reprompt.

* Move showPasswordDialog to paltformutils

* Fix swal2 validation error styling

* Group imports

* Update src/_locales/en/messages.json

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2021-05-03 20:56:38 +02:00
Oscar Hinton 44463e7bc0
Remove dead code (#1787)
* Remove dead analytics code
2021-04-14 23:43:09 +02:00
Thomas Rittson ea1a1cc99b Use consistent naming convention for launchCipher 2021-01-28 07:45:54 +10:00
Thomas Rittson 4045ce2d15 Pass launchCipher down to grandchild for reuse 2021-01-27 15:34:14 +10:00
Hinton b1e376ce66 Fix action buttons not working when TOTP is not available 2021-01-08 15:48:48 +01:00
Matt Gibson 0cd6efd67f
Move share from edit to view. Fix animations (#1497)
* Move share from edit to view. Fix animations

Editing and Sharing a cipher simultaneously results in lost edits. Move
share button to the view page to resolve this confusion.

Previous routing caused the share form to be animated again on
submition, resulting in a stuttering page load. This method correctly
animates all transitions with the concession that the share page
always takes you back to the view page. This is not necessarily the current
behavior, but it is the most likely behavior in the current scheme

* Update jslib reference
2020-12-17 11:06:31 -06:00
Matt Gibson 29c624e37b
Add totp copy to clipboard button to cipher view (#1493)
* Add totp copy to clipboard button to cipher view

* Hide quick-copy rather than disable if no totp

* Revert to disabled TOTP button

* Enforce premium access to TOTPs

* Update jslib reference
2020-12-15 10:26:01 -06:00
hinton 5e4259db38 Add support for hidden password 2020-05-24 19:59:49 +02:00
Kyle Spearrin 6263a11463 log event when copying from list 2019-07-12 15:00:20 -04:00
Kyle Spearrin d6e257b1ce allow launching URLs without protocol than end with tld 2019-01-07 10:33:20 -05:00
Kyle Spearrin ada83aae8f use `navigator.clipboard` to copy text if available 2018-08-13 09:44:59 -04:00
Kyle Spearrin 04f687d6fc pass window doc to copy function 2018-04-19 08:04:00 -04:00
Kyle Spearrin 67ab9b1d3e move new app into popup folder 2018-04-10 21:54:20 -04:00