1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02:00

Fixed Name & URI 1 Fields Populated Incorrectly when creating new Login in popout window (# 1816)

This commit is contained in:
arun 2021-05-04 13:55:10 -04:00
parent cdc71dd661
commit 8169922f84

View File

@ -76,10 +76,21 @@ export class AddEditComponent extends BaseAddEditComponent {
if (!this.editMode || this.cloneMode) {
if (params.name && (this.cipher.name == null || this.cipher.name === '')) {
this.cipher.name = params.name;
if (this.popupUtilsService.inPopout(window)) {
this.cipher.name = '';
}
else {
this.cipher.name = params.name;
}
}
if (params.uri && (this.cipher.login.uris[0].uri == null || this.cipher.login.uris[0].uri === '')) {
this.cipher.login.uris[0].uri = params.uri;
if (this.popupUtilsService.inPopout(window)) {
this.cipher.login.uris[0].uri = '';
}
else {
this.cipher.login.uris[0].uri = params.uri;
}
}
}
if (queryParamsSub != null) {