diff --git a/libs/common/src/vault/models/data/collection.data.ts b/libs/common/src/vault/models/data/collection.data.ts index 09513ca462..ee27846eed 100644 --- a/libs/common/src/vault/models/data/collection.data.ts +++ b/libs/common/src/vault/models/data/collection.data.ts @@ -6,6 +6,7 @@ export class CollectionData { name: string; externalId: string; readOnly: boolean; + hidePasswords: boolean; constructor(response: CollectionDetailsResponse) { this.id = response.id; @@ -13,5 +14,6 @@ export class CollectionData { this.name = response.name; this.externalId = response.externalId; this.readOnly = response.readOnly; + this.hidePasswords = response.hidePasswords; } } diff --git a/libs/common/src/vault/models/domain/collection.spec.ts b/libs/common/src/vault/models/domain/collection.spec.ts index 977a5e53cf..c685f0272e 100644 --- a/libs/common/src/vault/models/domain/collection.spec.ts +++ b/libs/common/src/vault/models/domain/collection.spec.ts @@ -13,6 +13,7 @@ describe("Collection", () => { name: "encName", externalId: "extId", readOnly: true, + hidePasswords: true, }; }); @@ -39,7 +40,7 @@ describe("Collection", () => { name: { encryptedString: "encName", encryptionType: 0 }, externalId: "extId", readOnly: true, - hidePasswords: null, + hidePasswords: true, }); }); diff --git a/libs/common/src/vault/models/response/collection.response.ts b/libs/common/src/vault/models/response/collection.response.ts index ad01da2865..4cce6b072e 100644 --- a/libs/common/src/vault/models/response/collection.response.ts +++ b/libs/common/src/vault/models/response/collection.response.ts @@ -18,10 +18,12 @@ export class CollectionResponse extends BaseResponse { export class CollectionDetailsResponse extends CollectionResponse { readOnly: boolean; + hidePasswords: boolean; constructor(response: any) { super(response); this.readOnly = this.getResponseProperty("ReadOnly") || false; + this.hidePasswords = this.getResponseProperty("HidePasswords") || false; } }