1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00

add storage gb info to org

This commit is contained in:
Kyle Spearrin 2018-07-18 09:21:34 -04:00
parent 4d702f4de3
commit aa811e51c3
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@ export class OrganizationData {
usersGetPremium: boolean;
seats: number;
maxCollections: number;
maxStorageGb?: number;
constructor(response: ProfileOrganizationResponse) {
this.id = response.id;
@ -34,5 +35,6 @@ export class OrganizationData {
this.usersGetPremium = response.usersGetPremium;
this.seats = response.seats;
this.maxCollections = response.maxCollections;
this.maxStorageGb = response.maxStorageGb;
}
}

View File

@ -18,6 +18,7 @@ export class Organization {
usersGetPremium: boolean;
seats: number;
maxCollections: number;
maxStorageGb?: number;
constructor(obj?: OrganizationData) {
if (obj == null) {
@ -38,6 +39,7 @@ export class Organization {
this.usersGetPremium = obj.usersGetPremium;
this.seats = obj.seats;
this.maxCollections = obj.maxCollections;
this.maxStorageGb = obj.maxStorageGb;
}
get canAccess() {