Skip to content

Commit 485f82f

Browse files
authored
Merge Link to image - Meeds-io/MIPs#232 (#1970)
2 parents 43f0f45 + 24bbf00 commit 485f82f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

portlets/src/main/webapp/vue-app/commons/components/program/ProgramImageSelector.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@
5959
:max-image-width="maxImageWidth"
6060
:no-expand-icon="noExpand"
6161
back-icon
62-
@input="updateUploadId"
63-
@data="imageData = $event" />
62+
@apply="updateImage" />
6463
</v-card>
6564
</template>
6665
<script>
@@ -143,6 +142,10 @@ export default {
143142
this.$emit('input', this.defaultImageUrl);
144143
this.$emit('deleted');
145144
},
145+
updateImage(image) {
146+
this.imageData = image.src;
147+
this.updateUploadId(image.uploadId);
148+
}
146149
},
147150
};
148151
</script>

0 commit comments

Comments
 (0)