Skip to content

Commit

Permalink
Merge pull request #1185 from City-of-Helsinki/UHF-9322
Browse files Browse the repository at this point in the history
UHF-9322: Remove traces of Genesys/Suunte chats that are no longer used
  • Loading branch information
teroelonen authored Feb 17, 2025
2 parents bacd297 + 38be0a2 commit b4889f1
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 28 deletions.
1 change: 0 additions & 1 deletion dist/js/disable-genesys-button.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion dist/js/nav-toggle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/toggle-widgets.min.js

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

9 changes: 0 additions & 9 deletions hdbt.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,6 @@ environment-indicator:
minified: true
}

disable_genesys_button:
version: 1.x
js:
src/js/disable-genesys-button.js: {}
dependencies:
- core/jquery
- core/drupal
- core/drupalSettings

nav-toggle:
version: 1.x
js:
Expand Down
3 changes: 0 additions & 3 deletions hdbt.theme
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ function hdbt_preprocess_html(&$variables): void {
$variables['#attached']['library'][] = 'hdbt/matomo';
}

// Disable Genesys button if the chat element does not exist.
$variables['#attached']['library'][] = 'hdbt/disable_genesys_button';

// Toggle between global and local navigation libraries for CSS and JS.
$navigation_enabled = \Drupal::moduleHandler()->moduleExists('helfi_navigation');
$variables['#attached']['library'][] = $navigation_enabled ? 'hdbt/nav-global' : 'hdbt/nav-local';
Expand Down
12 changes: 0 additions & 12 deletions src/js/disable-genesys-button.js

This file was deleted.

1 change: 0 additions & 1 deletion src/js/nav-toggle/toggle-widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

const HIDE_SELECTORS = [
'.si-toggle-container', // Siteimprove accessibility tool
'.cx-theme-helsinki-blue', // Genesys chat in sote
'.aca--button--desktop, .aca--button--mobile, .aca--widget--mobile, .aca--widget--desktop, #aca--widget-button-close', // Watson chatbot in asuminen
'#telia-ace-leijuke', // Telia ACE chat leijuke
'.humany-trigger, .humany-widget', // Telia ACE chat button and widget
Expand Down

0 comments on commit b4889f1

Please sign in to comment.