Skip to content

Commit

Permalink
UI: Fix metadata tab not showing given policy (#15824) (#15875)
Browse files Browse the repository at this point in the history
* Update path that metadata tab checks capabilities against

* Add changelog

* Update test to handle this case

* Fix tests url

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
  • Loading branch information
hashishaw and hellobontempo committed Jun 28, 2022
1 parent e9bac40 commit e3d3408
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 56 deletions.
3 changes: 3 additions & 0 deletions changelog/15824.txt
@@ -0,0 +1,3 @@
```release-note:bug
ui: Fix issue where metadata tab is hidden even though policy grants access
```
5 changes: 3 additions & 2 deletions ui/app/components/secret-edit.js
Expand Up @@ -98,8 +98,9 @@ export default Component.extend(FocusOnInsertMixin, WithNavToNearestAncestor, {
if (!context.model || !context.isV2) {
return;
}
let backend = context.model.backend;
let path = `${backend}/metadata/`;
const backend = context.model.backend;
const id = context.model.id;
const path = `${backend}/metadata/${id}`;
return {
id: path,
};
Expand Down

0 comments on commit e3d3408

Please sign in to comment.