Skip to content

Commit

Permalink
fix: token list in Role details page is updated with tokens linked to… (
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriia-ruban authored and wenincode committed Dec 12, 2023
1 parent 2c6d620 commit e458387
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .changelog/19912.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: update token list on Role details page to show only linked tokens
```
18 changes: 9 additions & 9 deletions ui/packages/consul-ui/app/templates/dc/acls/roles/-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
@nspace={{nspace}}
@partition={{partition}}
/>
{{#if (not create)}}
<DataSource
@src={{uri '/${partition}/${nspace}/${dc}/tokens/for-role/${id}'
(hash
partition=partition
nspace=nspace
dc=dc
id=(or id '')
)
{{#if (not create)}}
<DataSource
@src={{uri '/${partition}/${nspace}/${dc}/tokens/for-role/${id}'
(hash
partition=partition
nspace=nspace
dc=dc
id=(if item item.ID '')
)
}}
as |loader|>
{{#if (gt loader.data.length 0)}}
Expand Down

0 comments on commit e458387

Please sign in to comment.