Skip to content
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

1499 display image description #1512

Merged
merged 8 commits into from Jun 29, 2020
1 change: 1 addition & 0 deletions MediaGalleryUi/Model/GetDetailsByAssetId.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function execute(int $assetId): array
'image_url' => $this->getUrl($asset->getPath()),
'title' => $asset->getTitle(),
'path' => $asset->getPath(),
'description' => $asset->getDescription(),
'id' => $assetId,
'details' => $this->detailsProviderPool->execute($asset),
'size' => $asset->getSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ <h3 data-bind="i18n: 'Details'"></h3>
</each>
</div>
</div>
<div class="description image-details-section">
<h3 data-bind="i18n: 'Description'"></h3>
<div data-bind="text: image().description"></div>
</div>
<div class="tags image-details-section" if="image().tags.length">
<h3 data-bind="i18n: 'Tags'"></h3>
<div class="tags-list" data-bind="css: {'show-all-tags': showAllTags}">
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ To connect with Magento team and the Community, join us on the [Magento Communit
If you are interested in joining Slack, or a specific channel, use our [self signup](https://opensource.magento.com/slack) link.

Adobe Stock Integration project slack channel: [#adobe-stock](https://magentocommeng.slack.com/messages/CJLSYEPFA)

test