mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
Merge pull request #1820 from arunkapur/master
Fixed Name & URI 1 Fields Populated Incorrectly
This commit is contained in:
commit
38e4ba0879
@ -75,10 +75,12 @@ export class AddEditComponent extends BaseAddEditComponent {
|
||||
await this.load();
|
||||
|
||||
if (!this.editMode || this.cloneMode) {
|
||||
if (params.name && (this.cipher.name == null || this.cipher.name === '')) {
|
||||
if (!this.popupUtilsService.inPopout(window) && params.name &&
|
||||
(this.cipher.name == null || this.cipher.name === '')) {
|
||||
this.cipher.name = params.name;
|
||||
}
|
||||
if (params.uri && (this.cipher.login.uris[0].uri == null || this.cipher.login.uris[0].uri === '')) {
|
||||
if (!this.popupUtilsService.inPopout(window) && params.uri &&
|
||||
(this.cipher.login.uris[0].uri == null || this.cipher.login.uris[0].uri === '')) {
|
||||
this.cipher.login.uris[0].uri = params.uri;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user