Skip to content

Commit

Permalink
[web] fix expand/collapse text (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann authored Jan 20, 2023
2 parents 54cb512 + aaba7a8 commit 02e0f12
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 @@ -22,7 +22,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 02e0f12

Please sign in to comment.