diff --git a/src/app/vault/add-edit.component.ts b/src/app/vault/add-edit.component.ts index 51cb6c6ca7..6e54122ade 100644 --- a/src/app/vault/add-edit.component.ts +++ b/src/app/vault/add-edit.component.ts @@ -113,7 +113,7 @@ export class AddEditComponent implements OnChanges { this.cipher = await cipher.decrypt(); } else { this.cipher = new CipherView(); - this.cipher.folderId = null; // TODO + this.cipher.folderId = this.folderId; this.cipher.type = CipherType.Login; this.cipher.login = new LoginView(); this.cipher.card = new CardView(); diff --git a/src/app/vault/ciphers.component.html b/src/app/vault/ciphers.component.html index 8a099e8512..504c63dbc1 100644 --- a/src/app/vault/ciphers.component.html +++ b/src/app/vault/ciphers.component.html @@ -11,17 +11,17 @@
diff --git a/src/app/vault/ciphers.component.ts b/src/app/vault/ciphers.component.ts index 3856c9ac94..b0a3a34836 100644 --- a/src/app/vault/ciphers.component.ts +++ b/src/app/vault/ciphers.component.ts @@ -17,6 +17,7 @@ import { CipherService } from 'jslib/abstractions/cipher.service'; template: template, }) export class CiphersComponent implements OnInit { + @Input() activeCipherId: string = null; @Output() onCipherClicked = new EventEmitter