mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
add storage gb info to org
This commit is contained in:
@@ -18,6 +18,7 @@ export class OrganizationData {
|
|||||||
usersGetPremium: boolean;
|
usersGetPremium: boolean;
|
||||||
seats: number;
|
seats: number;
|
||||||
maxCollections: number;
|
maxCollections: number;
|
||||||
|
maxStorageGb?: number;
|
||||||
|
|
||||||
constructor(response: ProfileOrganizationResponse) {
|
constructor(response: ProfileOrganizationResponse) {
|
||||||
this.id = response.id;
|
this.id = response.id;
|
||||||
@@ -34,5 +35,6 @@ export class OrganizationData {
|
|||||||
this.usersGetPremium = response.usersGetPremium;
|
this.usersGetPremium = response.usersGetPremium;
|
||||||
this.seats = response.seats;
|
this.seats = response.seats;
|
||||||
this.maxCollections = response.maxCollections;
|
this.maxCollections = response.maxCollections;
|
||||||
|
this.maxStorageGb = response.maxStorageGb;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ export class Organization {
|
|||||||
usersGetPremium: boolean;
|
usersGetPremium: boolean;
|
||||||
seats: number;
|
seats: number;
|
||||||
maxCollections: number;
|
maxCollections: number;
|
||||||
|
maxStorageGb?: number;
|
||||||
|
|
||||||
constructor(obj?: OrganizationData) {
|
constructor(obj?: OrganizationData) {
|
||||||
if (obj == null) {
|
if (obj == null) {
|
||||||
@@ -38,6 +39,7 @@ export class Organization {
|
|||||||
this.usersGetPremium = obj.usersGetPremium;
|
this.usersGetPremium = obj.usersGetPremium;
|
||||||
this.seats = obj.seats;
|
this.seats = obj.seats;
|
||||||
this.maxCollections = obj.maxCollections;
|
this.maxCollections = obj.maxCollections;
|
||||||
|
this.maxStorageGb = obj.maxStorageGb;
|
||||||
}
|
}
|
||||||
|
|
||||||
get canAccess() {
|
get canAccess() {
|
||||||
|
|||||||
Reference in New Issue
Block a user