Skip to content

Commit

Permalink
Merge pull request #105 from netgen/SPLAT-462-gallery-support
Browse files Browse the repository at this point in the history
SPLAT-462 gallery support
  • Loading branch information
RandyCupic authored Aug 28, 2023
2 parents e512f0f + 87fa58a commit c90dad5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bundle/Resources/public/js/remotemedia.js

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions frontend/src/components/Interactions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<input v-model="stringifiedVariations" :name="this.config.inputFields.cropSettings" class="media-id"
type="hidden"/>
<portal to="ngrm-body-modal">
<portal :to="`ngrm-body-modal-${fieldId}`">
<crop-modal v-if="cropModalOpen" :available-variations="this.config.availableVariations"
:selected-image="selectedImage"
:translations="config.translations" @change="handleVariationCropChange"
Expand All @@ -49,7 +49,7 @@
:visibilities="visibilities" @close="handleUploadModalClose"
@uploaded="handleResourceUploaded"></upload-modal>
</portal>
<portal-target class="ngrm-model-portal" name="ngrm-body-modal"></portal-target>
<portal-target :class="`ngrm-model-portal-${fieldId}`" :name="`ngrm-body-modal-${fieldId}`"></portal-target>
</div>
</template>

Expand Down Expand Up @@ -103,6 +103,8 @@ export default {
{
detail: {
inputFields: this.config.inputFields,
selectedImage: this.selectedImage,
fieldId: this.fieldId,
}
}
)
Expand Down Expand Up @@ -143,6 +145,7 @@ export default {
format: item.format,
url: item.url,
previewUrl: item.previewUrl,
browseUrl: item.browseUrl,
alternateText: item.altText,
caption: item.caption,
watermarkText: this.selectedImage.watermarkText,
Expand Down Expand Up @@ -175,6 +178,7 @@ export default {
format: item.format,
url: item.url,
previewUrl: item.previewUrl,
browseUrl: item.browseUrl,
alternateText: item.altText,
caption: item.caption,
watermarkText: this.selectedImage.watermarkText,
Expand All @@ -200,6 +204,7 @@ export default {
format: '',
url: '',
previewUrl: '',
browseUrl: '',
alternateText: '',
caption: '',
watermarkText: this.selectedImage.watermarkText,
Expand Down Expand Up @@ -259,7 +264,7 @@ export default {
},
mounted() {
this.$nextTick(function () {
const modalPortal = document.querySelector('.ngrm-model-portal');
const modalPortal = document.querySelector(`.ngrm-model-portal-${this.fieldId}`);
document.body.prepend(modalPortal);
})
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/SelectFolderInteraction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export default {
},
methods: {
handleSelectFolderModalOpen() {
console.log(this.selectedFolder);
this.selectFolderModalOpen = true;
},
handleSelectFolderModalClose() {
Expand Down

0 comments on commit c90dad5

Please sign in to comment.