Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
fix: now really disable welcome app when disabled by user
Browse files Browse the repository at this point in the history
fixes: #960
  • Loading branch information
quintesse committed Aug 16, 2019
1 parent cda5c81 commit ed2400e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ export function buildDownloadNewAppPayload(app: NewApp) {
}

if (parts.length > 1) {
parts = [
...parts.map(p => ({...p, subFolderName: p.category})),
{category: 'support', subFolderName: 'support', capabilities: [
app.welcomeApp.selected ? { module: 'capability-welcome' } : {}
]}
];
parts = [...parts.map(p => ({...p, subFolderName: p.category}))];
if (app.welcomeApp.selected) {
parts.push({category: 'support', subFolderName: 'support', capabilities: [
{ module: 'capability-welcome' }
]});
}
} else if (app.welcomeApp.selected) {
parts[0].capabilities.push({module: 'capability-welcome'});
}
Expand Down

0 comments on commit ed2400e

Please sign in to comment.