-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBX-6315: Edit/Preview embedded items #123
Conversation
f227b98
to
38c2236
Compare
f3ef677
to
b39f3f1
Compare
b39f3f1
to
fb70352
Compare
fb70352
to
aeafecd
Compare
<span | ||
class="ibexa-embed-content__title" | ||
data-ibexa-update-content-id="${contentId}" | ||
data-ibexa-update-source-data-path="Content.Name">${title}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data-ibexa-update-source-data-path="Content.Name">${title}</span> | |
data-ibexa-update-source-data-path="Content.Name" | |
> | |
${title} | |
</span> |
@@ -17,6 +17,10 @@ class IbexaEmbedContentInlineUI extends IbexaEmbedBaseUI { | |||
return { | |||
contentId: items[0].ContentInfo.Content._id, | |||
contentName: items[0].ContentInfo.Content.TranslatedName, | |||
locationId: items[0].id, | |||
languageCodes: items[0].ContentInfo.Content.CurrentVersion.Version.VersionInfo.VersionTranslationInfo.Language.map( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe put items[0].ContentInfo.Content
into variable? it's also used in line 18 and 19, thanks to this variable you'll also shorten this line
<span | ||
class="ibexa-embed-content__title" | ||
data-ibexa-update-content-id="${contentId}" | ||
data-ibexa-update-source-data-path="Content.Name">${title}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data-ibexa-update-source-data-path="Content.Name">${title}</span> | |
data-ibexa-update-source-data-path="Content.Name" | |
> | |
${title} | |
</span> |
@@ -17,6 +17,10 @@ class IbexaEmbedContentUI extends IbexaEmbedBaseUI { | |||
return { | |||
contentId: items[0].ContentInfo.Content._id, | |||
contentName: items[0].ContentInfo.Content.TranslatedName, | |||
locationId: items[0].id, | |||
languageCodes: items[0].ContentInfo.Content.CurrentVersion.Version.VersionInfo.VersionTranslationInfo.Language.map( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
TODO:
$ composer fix-cs
).