Fix Copy token button when sidebar navigation is in a collapsed state due to a small window size (#23331)

* one line fix

* changelog
This commit is contained in:
Angel Garbarino 2023-10-03 18:02:14 -06:00 committed by GitHub
parent 999111e5b3
commit 1fdf56d2b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 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

@ -39,11 +39,13 @@
</LinkTo>
</li>
{{/if}}
<li class="action">
<li class="action" id="container">
{{! container is required in navbar collapsed state }}
<Hds::Copy::Button
@text="Copy token"
@textToCopy={{this.auth.currentToken}}
@isFullWidth={{true}}
@container="#container"
class="in-dropdown link is-flex-start"
{{on "click" (fn (set-flash-message "Token copied!"))}}
/>