Skip to content

Commit

Permalink
Refs #269520 - other_organisation token widget edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
iugin committed Jun 6, 2024
1 parent 6fd7543 commit b6df127
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { TopicsWidget } from '@eeacms/volto-eea-website-theme/components/theme/W
import CreatableSelectWidget from '@eeacms/volto-eea-website-theme/components/theme/Widgets/CreatableSelectWidget';

import { Icon } from '@plone/volto/components';
import { TokenWidget as TokenWidgetEdit} from '@plone/volto/components/manage/Widgets/TokenWidget';
import { serializeNodesToText } from '@plone/volto-slate/editor/render';
import Tag from '@eeacms/volto-eea-design-system/ui/Tag/Tag';

Expand Down Expand Up @@ -329,7 +330,7 @@ const applyConfig = (config) => {
}

// Custom Widgets
config.widgets.id.other_organisations = TokenWidget;
config.widgets.id.other_organisations = TokenWidgetEdit;
config.widgets.views.id.topics = TopicsWidget;
config.widgets.views.id.subjects = TokenWidget;
config.widgets.views.widget.tags = TokenWidget;
Expand Down
4 changes: 3 additions & 1 deletion src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ describe('applyConfig', () => {
tags: undefined,
},
},
widget: {},
widget: {
id: {}
},
},
settings: {
eea: {
Expand Down

0 comments on commit b6df127

Please sign in to comment.