Skip to content

Commit

Permalink
Revert "Add manage property to synced Collection data"
Browse files Browse the repository at this point in the history
Pushed to feature branch instead of a new one

This reverts commit 65cd395.
  • Loading branch information
eliykat committed Sep 27, 2023
1 parent 65cd395 commit b2e7b85
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions libs/common/src/vault/models/data/collection.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ export class CollectionData {
name: string;
externalId: string;
readOnly: boolean;
manage: boolean;

constructor(response: CollectionDetailsResponse) {
this.id = response.id;
this.organizationId = response.organizationId;
this.name = response.name;
this.externalId = response.externalId;
this.readOnly = response.readOnly;
this.manage = response.manage;
}
}
4 changes: 1 addition & 3 deletions libs/common/src/vault/models/domain/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export class Collection extends Domain {
externalId: string;
readOnly: boolean;
hidePasswords: boolean;
manage: boolean;

constructor(obj?: CollectionData) {
super();
Expand All @@ -28,9 +27,8 @@ export class Collection extends Domain {
externalId: null,
readOnly: null,
hidePasswords: null,
manage: null,
},
["id", "organizationId", "externalId", "readOnly", "hidePasswords", "manage"]
["id", "organizationId", "externalId", "readOnly", "hidePasswords"]
);
}

Expand Down
2 changes: 0 additions & 2 deletions libs/common/src/vault/models/response/collection.response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ export class CollectionResponse extends BaseResponse {

export class CollectionDetailsResponse extends CollectionResponse {
readOnly: boolean;
manage: boolean;

constructor(response: any) {
super(response);
this.readOnly = this.getResponseProperty("ReadOnly") || false;
this.manage = this.getResponseProperty("Manage") || false;
}
}

Expand Down
2 changes: 0 additions & 2 deletions libs/common/src/vault/models/view/collection.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export class CollectionView implements View, ITreeNodeObject {
externalId: string = null;
readOnly: boolean = null;
hidePasswords: boolean = null;
manage: boolean = null;

constructor(c?: Collection | CollectionAccessDetailsResponse) {
if (!c) {
Expand All @@ -25,7 +24,6 @@ export class CollectionView implements View, ITreeNodeObject {
if (c instanceof Collection) {
this.readOnly = c.readOnly;
this.hidePasswords = c.hidePasswords;
this.manage = c.manage;
}
}
}

0 comments on commit b2e7b85

Please sign in to comment.