Skip to content

Commit

Permalink
[web] fix expand/collapse text
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann committed Jan 20, 2023
1 parent 529c847 commit aaba7a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

### Bugfixes

- Fixed a bug with the local storage that caused problems with outdated discovery information
- Fixed a bug in the webinterface with the local storage that caused problems with outdated discovery information
- Fixed a bug in the webinterface where the `Expand` `Collapse` buttons (e.g. in the consent screen) got the wrong text.

## mytoken 0.7.0

Expand Down
2 changes: 1 addition & 1 deletion internal/server/web/static/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $.fn.hideB = function () {
$('.my-expand').on('click', function () {
const expand = "Expand";
const collapse = "Collapse";
if ($(this).text() === expand) {
if ($(this).text().trim() === expand) {
$(this).text(collapse);
} else {
$(this).text(expand);
Expand Down

0 comments on commit aaba7a8

Please sign in to comment.