1
0
mirror of https://github.com/bitwarden/web synced 2025-12-16 16:23:31 +00:00

check status and types for org management

This commit is contained in:
Kyle Spearrin
2017-03-25 21:52:27 -04:00
parent 3c83741b13
commit 77ddc83a04
4 changed files with 21 additions and 10 deletions

View File

@@ -99,7 +99,8 @@ angular
id: profile.Organizations[i].Id,
name: profile.Organizations[i].Name,
key: profile.Organizations[i].Key,
status: profile.Organizations[i].Status
status: profile.Organizations[i].Status,
type: profile.Organizations[i].Type
});
}
@@ -125,12 +126,13 @@ angular
id: org.Id,
name: org.Name,
key: org.Key,
status: org.Status
status: 2, // 2 = Confirmed
type: 0 // 0 = Owner
};
profile.organizations.push(o);
_userProfile = profile;
cryptoService.addOrgKey(o);
cryptoService.addOrgKey(o.id, o.key);
}
});
};