Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
fix(user): hide archived apps
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGeraud authored and tcompiegne committed Sep 18, 2019
1 parent 30ffe7a commit b27439c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/management/configuration/user/userdetail.component.ts
Expand Up @@ -166,11 +166,13 @@ const UserDetailComponent: ng.IComponentOptions = {
UserService.getMemberships(this.selectedUser.id, "application").then( (response) => {
let newAppList = [];
_.forEach(response.data.metadata, (appMetadata: any, appId: string) => {
newAppList.push( {
id: appId,
name: appMetadata.name,
type: appMetadata.type
});
if (!appMetadata.status || appMetadata.status !== "archived") {
newAppList.push({
id: appId,
name: appMetadata.name,
type: appMetadata.type
});
}
});
$scope.userApplications = _.sortBy(newAppList, "name");
}
Expand Down

0 comments on commit b27439c

Please sign in to comment.