Skip to content

Commit

Permalink
Edit/Preview embedded items
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Aug 31, 2023
1 parent 7071b11 commit e319193
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
const itemNode = itemNodes[itemNodes.length - 1];
const contentId = escapeHTML(item.ContentInfo.Content._id);
const locationId = item.id;
const currentVersionNo = item.ContentInfo.Content.CurrentVersion.Version.VersionInfo.versionNo;
const versionNo = escapeHTML(item.ContentInfo.Content.currentVersionNo);
const languageCodes = item.ContentInfo.Content.CurrentVersion.Version.VersionInfo.VersionTranslationInfo.Language.map(
(language) => language.languageCode,
);
Expand All @@ -99,7 +99,7 @@
contentId,
locationId,
languageCodes,
versionNo: currentVersionNo,
versionNo,
menuTriggerElement: itemActionsTriggerElement,
menuContainer: itemActionsMenuContainer,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
attr: {
'data-content-id': content_id|default(''),
'data-location-id': location_id|default(''),
'data-version-no': versionNo|default(''),
'data-language-codes': languageCodes|default([])|json_encode,
'data-version-no': version_no|default(''),
'data-language-codes': language_codes|default([])|json_encode,
class: attr.class|default('ibexa-embedded-item-actions__menu')
},
items_container_attr: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
{% include '@ibexadesign/ui/component/embedded_item_actions/embedded_item_actions.html.twig' with {
content_id: relation.contentId,
location_id: relation.contentInfo.mainLocationId,
versionNo: relation.contentInfo.currentVersionNo,
version_no: relation.contentInfo.currentVersionNo,
} only %}
{% endset %}

Expand Down

0 comments on commit e319193

Please sign in to comment.