Skip to content

Commit

Permalink
SITES-14797: display dm btns on teaser when they are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bcenusa committed Aug 14, 2023
1 parent 55a083f commit 75de0c3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@
$cqFileUpload = $dialog.find(".cmp-image__editor-file-upload");

$dynamicMediaGroup = $dialogContent.find(".cmp-image__editor-dynamicmedia");
$dynamicMediaGroup.hide();

Check failure on line 86 in content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/editor/js/image.js

View workflow job for this annotation

GitHub Actions / build-js (14)

Trailing spaces not allowed

Check failure on line 86 in content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/editor/js/image.js

View workflow job for this annotation

GitHub Actions / build-js (14)

Trailing spaces not allowed
areDMFeaturesEnabled = ($dynamicMediaGroup.length === 1);
if (areDMFeaturesEnabled) {
smartCropRenditionsDropDown = $dynamicMediaGroup.find(smartCropRenditionDropDownSelector).get(0);
} else {
$dynamicMediaGroup.hide();
}

imageFromPageImage = dialogContent.querySelector("coral-checkbox[name='./imageFromPageImage']");
Expand Down

0 comments on commit 75de0c3

Please sign in to comment.