1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 03:03:43 +00:00
Commit Graph

21 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
Daniel James Smith
71913a5eb5 Update badge number when saving a new entry (#2284)
* Rename message to changePasswordMessage

* Rename message variable to addLoginMessage

* Add early return and remove unneeded if below

* Update badge and menu after adding an entry

* Adjusted casing of enum properties

* Add explicit check for queueMessageType

* Turn NotificationQueueMessageType into simple enum
2022-01-25 08:16:36 +01:00
Oscar Hinton
8fe821b9a3 Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
Daniel James Smith
0174d239ca Fix save prompt showing when disabled by user 2021-12-15 19:04:47 +01:00
Daniel James Smith
daf20bbf57 Do not prompt for new login if user is not logged in 2021-11-16 13:34:06 +01:00
Thomas Rittson
7b3f8d4223 Don't save passwords if user is logged out 2021-11-16 14:14:48 +10:00
Daniel James Smith
dd7bfcdc12 Removed unnecessary brackets 2021-11-02 10:09:44 +01:00
Daniel James Smith
9d79bae1c8 When vault is locked also check for personal ownership policy 2021-10-29 18:50:55 +02:00
Liu Junqi
75c0680968 solved a casing issue that may lead to build fail 2021-10-20 21:11:46 +08:00
Daniel James Smith
3bb58baf45 Add types for addLogin and changePassword runtime messages 2021-10-19 12:10:31 +02:00
Daniel James Smith
d4e91a81f9 Capitalize class name: LockedVaultPendingNotificationsItem 2021-10-19 11:20:55 +02:00
Daniel James Smith
2299abe7a6 Make linter happy 2021-10-18 16:47:14 +02:00
Daniel James Smith
95e9387314 Remove logic out of notification content scripts 2021-10-18 16:42:32 +02:00
Daniel James Smith
fd8de4ca0c Use messages/events instead of main.unlockCompleted 2021-10-18 16:41:42 +02:00
Daniel James Smith
2699e0f5a0 Add types for common browser functions 2021-10-18 16:34:14 +02:00
Daniel James Smith
1bf7a7cad6 Perform null check on chrome.runtime 2021-10-18 16:31:59 +02:00
Daniel James Smith
92459c6098 Declare and use types for notificationQueue 2021-10-15 19:51:24 +02:00
Daniel James Smith
d1977f1f08 Added type declarations where chrome.tabs.Tab applies 2021-10-15 19:42:05 +02:00
Daniel James Smith
79f849fd92 Make linter happy 2021-10-15 15:32:56 +02:00
Daniel James Smith
7388cd174e Move notificationQueue from main into notification.background 2021-10-15 15:09:13 +02:00
Daniel James Smith
0eb7fe1407 Extract logic for notificationBar into new NotificationBackground class 2021-10-15 15:03:25 +02:00