mirror of
https://github.com/bitwarden/browser
synced 2024-12-25 01:22:26 +01:00
dont overwrite name and uri if already set
This commit is contained in:
parent
4f5bf8e508
commit
f998ec190d
@ -56,10 +56,10 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
|||||||
await this.load();
|
await this.load();
|
||||||
|
|
||||||
if (!this.editMode) {
|
if (!this.editMode) {
|
||||||
if (params.name) {
|
if (params.name && (this.cipher.name == null || this.cipher.name === '')) {
|
||||||
this.cipher.name = params.name;
|
this.cipher.name = params.name;
|
||||||
}
|
}
|
||||||
if (params.uri) {
|
if (params.uri && (this.cipher.login.uris[0].uri == null || this.cipher.login.uris[0].uri === '')) {
|
||||||
this.cipher.login.uris[0].uri = params.uri;
|
this.cipher.login.uris[0].uri = params.uri;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user