From fda815589406fe76ddc0a45cfcd048e75e05c63b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 5 Jul 2018 10:10:30 -0400 Subject: [PATCH] set org id when encrypting new --- jslib | 2 +- src/app/organizations/add-edit.component.ts | 7 +++++++ src/app/vault/ciphers.component.html | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index 9b008ff382..ef5eebba66 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 9b008ff382d1dd6682185cf092afbf02a83ce951 +Subproject commit ef5eebba66d606d53cf4bc730426ea393276e801 diff --git a/src/app/organizations/add-edit.component.ts b/src/app/organizations/add-edit.component.ts index b277ff9138..66e8341367 100644 --- a/src/app/organizations/add-edit.component.ts +++ b/src/app/organizations/add-edit.component.ts @@ -50,6 +50,13 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit { } } + protected encryptCipher() { + if (!this.editMode) { + this.cipher.organizationId = this.organization.id; + } + return super.encryptCipher(); + } + protected async saveCipher(cipher: Cipher) { if (this.organization.isAdmin) { const request = new CipherRequest(cipher); diff --git a/src/app/vault/ciphers.component.html b/src/app/vault/ciphers.component.html index f316f4a189..e2b2136fa6 100644 --- a/src/app/vault/ciphers.component.html +++ b/src/app/vault/ciphers.component.html @@ -10,7 +10,7 @@ {{c.name}} - +
{{c.subTitle}}