Fix copy button in collapsed sidebar nav in CopyButton component (#23564)

* fix (#23511)

* changelog
This commit is contained in:
Angel Garbarino 2023-10-09 11:39:50 -06:00 committed by GitHub
parent 89de6267c7
commit f694c7ffb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

3
changelog/23331.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: Fix the copy token button in the sidebar navigation window when in a collapsed state.
```

View File

@ -34,12 +34,13 @@
</LinkTo>
</li>
{{/if}}
<li class="action">
<li class="action" id="container">
<CopyButton
@clipboardText={{this.auth.currentToken}}
class="link"
@buttonType="button"
@success={{action (set-flash-message "Token copied!")}}
@container="#container"
>
Copy token
</CopyButton>