Skip to content

Commit

Permalink
Allow new configured accounts to be configured too
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda committed Jun 21, 2024
1 parent 4a662bb commit 2376b38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/packages/addons-service/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export default class Provider {
baseAccount: account,
connectedCapabilities: ['ACCESS', 'UPDATE'],
});
await configuredStorageAddon.save();
return await configuredStorageAddon.save();
}

@task
Expand All @@ -299,7 +299,7 @@ export default class Provider {
authorizedResource: this.serviceNode,
baseAccount: account,
});
await configuredCitationAddon.save();
return await configuredCitationAddon.save();
}

@task
Expand All @@ -311,7 +311,7 @@ export default class Provider {
authorizedResource: this.serviceNode,
baseAccount: account,
});
await configuredComputingAddon.save();
return await configuredComputingAddon.save();
}

@task
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default class AddonsServiceManagerComponent extends Component<Args> {
@waitFor
async createConfiguredAddon(newAccount: AllAuthorizedAccountTypes) {
if (this.selectedProvider) {
await taskFor(this.selectedProvider.createConfiguredAddon).perform(newAccount);
this.selectedConfiguration = await taskFor(this.selectedProvider.createConfiguredAddon).perform(newAccount);
}
}

Expand Down

0 comments on commit 2376b38

Please sign in to comment.