1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-02 18:17:46 +01:00

Revert "Add manage property to synced Collection data"

Pushed to feature branch instead of a new one

This reverts commit 65cd39589c.
This commit is contained in:
Thomas Rittson 2023-09-27 11:15:09 +10:00
parent 65cd39589c
commit b2e7b853a8
No known key found for this signature in database
GPG Key ID: CDDDA03861C35E27
4 changed files with 1 additions and 9 deletions

View File

@ -6,7 +6,6 @@ export class CollectionData {
name: string; name: string;
externalId: string; externalId: string;
readOnly: boolean; readOnly: boolean;
manage: boolean;
constructor(response: CollectionDetailsResponse) { constructor(response: CollectionDetailsResponse) {
this.id = response.id; this.id = response.id;
@ -14,6 +13,5 @@ export class CollectionData {
this.name = response.name; this.name = response.name;
this.externalId = response.externalId; this.externalId = response.externalId;
this.readOnly = response.readOnly; this.readOnly = response.readOnly;
this.manage = response.manage;
} }
} }

View File

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

View File

@ -18,12 +18,10 @@ export class CollectionResponse extends BaseResponse {
export class CollectionDetailsResponse extends CollectionResponse { export class CollectionDetailsResponse extends CollectionResponse {
readOnly: boolean; readOnly: boolean;
manage: boolean;
constructor(response: any) { constructor(response: any) {
super(response); super(response);
this.readOnly = this.getResponseProperty("ReadOnly") || false; this.readOnly = this.getResponseProperty("ReadOnly") || false;
this.manage = this.getResponseProperty("Manage") || false;
} }
} }

View File

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