mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 07:13:32 +00:00
[PM-10247] Browser Refresh - Fix save credential banner (#10520)
* [PM-10247] Prioritize initialValues when initiating the CipherForm child forms * [PM-10247] Fetch the addEditCipherInfo when opening the cipher form in Browser and override any initialValues if present * [PM-10247] Fix item details section tests * [PM-10247] Add login details section test * [PM-10247] Add autofill options tests * [PM-10247] Undo webpack config change * [PM-10247] Fix failing tests * [PM-10247] Add additional tests for addEditCipherInfo
This commit is contained in:
@@ -143,6 +143,20 @@ export class AutofillOptionsComponent implements OnInit {
|
||||
this.autofillOptionsForm.patchValue({
|
||||
autofillOnPageLoad: existingLogin.autofillOnPageLoad,
|
||||
});
|
||||
|
||||
if (this.cipherFormContainer.config.initialValues?.loginUri) {
|
||||
// Avoid adding the same uri again if it already exists
|
||||
if (
|
||||
existingLogin.uris?.findIndex(
|
||||
(uri) => uri.uri === this.cipherFormContainer.config.initialValues.loginUri,
|
||||
) === -1
|
||||
) {
|
||||
this.addUri({
|
||||
uri: this.cipherFormContainer.config.initialValues.loginUri,
|
||||
matchDetection: null,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private initNewCipher() {
|
||||
|
||||
Reference in New Issue
Block a user