Skip to content

Commit

Permalink
Merge pull request #751 from City-of-Helsinki/UHF-7650-helsinki-info-…
Browse files Browse the repository at this point in the history
…button

UHF-7650: Fix helsinki info button
  • Loading branch information
jeremysteerio authored Aug 23, 2023
2 parents 93bf331 + cf978d4 commit b431384
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/js/disable-genesys-button.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/js/disable-genesys-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
attach(context, settings) {
// Don't show the button if the chat element does not exist.
if (typeof _genesys === 'undefined') {
$('#openChat').replaceWith(`<div>${Drupal.t('Chat is not in use.')}</div>`);
$('#openChat').replaceWith(`<div id='genesys-disabled-message'>${Drupal.t('Chat is not in use.')}</div>`);
}
},
};
Expand Down

0 comments on commit b431384

Please sign in to comment.