Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Commit

Permalink
fix(community-badge): community badge should appear for missions (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy authored and edewit committed Jun 18, 2018
1 parent 0146181 commit 9b4b24c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export class MissionRuntimeCreateappStepComponent extends LauncherStep implement
}
mission.disabled = availableBoosters.empty;
mission.disabledReason = availableBoosters.emptyReason;
mission.community = this.launcherComponent.flow === 'osio' && !mission.disabled && this.versionId === 'community';
});
this._runtimes.forEach(runtime => {
const availableBoosters = MissionRuntimeService.getAvailableBoosters(runtime.boosters,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function createViewMissions(boosters: Booster[]): ViewMission[] {
id: mission.id,
name: mission.name,
description: mission.description,
community: false, // FIXME implement this behavior if still needed
community: false,
advanced: _.get(mission, 'metadata.level') === 'advanced',
suggested: _.get(mission, 'metadata.suggested', false),
prerequisite: _.get(mission, 'metadata.prerequisite', false),
Expand Down

0 comments on commit 9b4b24c

Please sign in to comment.