Skip to content

Commit

Permalink
Fix edit capabilities call in auth method (#14966)
Browse files Browse the repository at this point in the history
* Fix edit capabilities call in auth method

- Capabilities call was not getting triggered correctly as apiPath
  method was missing the correct context.

* Added changelog
  • Loading branch information
arnav28 committed Apr 11, 2022
1 parent fd73653 commit 361b213
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog/14966.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: Fixes edit auth method capabilities issue
```
4 changes: 2 additions & 2 deletions ui/app/models/auth-method.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ export default attachCapabilities(ModelExport, {
deletePath: apiPath`sys/auth/${'id'}`,
configPath: function (context) {
if (context.type === 'aws') {
return apiPath`auth/${'id'}/config/client`;
return apiPath`auth/${'id'}/config/client`.call(this, context);
} else {
return apiPath`auth/${'id'}/config`;
return apiPath`auth/${'id'}/config`.call(this, context);
}
},
});

0 comments on commit 361b213

Please sign in to comment.