Skip to content

Commit

Permalink
Change logic to populate a node addons
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda committed Nov 3, 2023
1 parent 9888b8e commit 1e327c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/models/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,8 @@ export default class NodeModel extends AbstractNodeModel.extend(Validations, Col
},
xhrFields: { withCredentials: true },
});
if (response.status === 200) {
const addons = await response.json();
const addonList = addons.data
if (response.data) {
const addonList = response.data
.filter((addon: any) => addon.attributes.node_has_auth)
.map((addon: any) => addon.id);
this.set('addonsEnabled', addonList);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{{t 'general.cancel'}}
</Button>
<Button
@type='destroy'
@type='primary'
disabled={{this.confirmSubmitToBoa.isRunning}}
{{on 'click' (perform this.confirmSubmitToBoa)}}
>
Expand Down

0 comments on commit 1e327c8

Please sign in to comment.