Skip to content

Commit

Permalink
Merge pull request #223 from jovandeginste/api-buttons
Browse files Browse the repository at this point in the history
refactor: improve API button style and behavior
  • Loading branch information
jovandeginste authored Aug 3, 2024
2 parents 89d42fd + d9ecc64 commit f870359
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions views/user/user_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,19 @@ <h2 class="{{ IconFor `user-profile` }}">{{ i18n "Your profile" }}</h2>
action="{{ RouteFor `user-profile-reset-api-key` }}"
>
<button
class="{{ IconFor `show` }}"
type="button"
class="{{ IconFor `show` }} edit"
title="{{ i18n `show/hide` }}"
onclick="toggleTextPassword(this, 'api_key'); return false;"
onclick="toggleTextPassword(this, 'api_key');"
/>
<button
type="button"
class="{{ IconFor `copy` }}"
title="{{ i18n `copy to clipboard` }}"
onclick="copyToClipboard('api_key'); return false;"
onclick="copyToClipboard('api_key');"
/>
<button
class="{{ IconFor `refresh` }}"
class="{{ IconFor `refresh` }} dangerous"
title="{{ i18n `generate a new API key` }}"
/>
</form>
Expand Down

0 comments on commit f870359

Please sign in to comment.