Skip to content

Commit

Permalink
Add feature flag for hotspots element
Browse files Browse the repository at this point in the history
REDMINE-20673
  • Loading branch information
tf committed May 15, 2024
1 parent 887667b commit 100413c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entry_types/scrolled/config/locales/new/hotspots.de.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
de:
pageflow:
hotspots_content_element:
feature_name: Hotspots Inhaltselement
pageflow_scrolled:
public:
more: Mehr
Expand Down
3 changes: 3 additions & 0 deletions entry_types/scrolled/config/locales/new/hotspots.en.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
en:
pageflow:
hotspots_content_element:
feature_name: Hotspots content element
pageflow_scrolled:
public:
more: More
Expand Down
1 change: 1 addition & 0 deletions entry_types/scrolled/lib/pageflow_scrolled/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def configure(config)
c.features.register('datawrapper_chart_embed_opt_in')
c.features.enable_by_default('datawrapper_chart_embed_opt_in')
c.features.register('iframe_embed_content_element')
c.features.register('hotspots_content_element')
c.features.register('image_gallery_content_element')
c.features.register('frontend_v2')
c.features.register('scrolled_entry_fragment_caching')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ editor.registerSideBarRouting({
editor.contentElementTypes.register('hotspots', {
pictogram,
category: 'links',
featureName: 'hotspots_content_element',
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right', 'backdrop'],
supportedWidthRange: ['xxs', 'full'],

Expand Down

0 comments on commit 100413c

Please sign in to comment.