Skip to content

Commit

Permalink
feat: Drop an image to an activity - MEED-2032 - Meeds-io/MIPs#53 (#319)
Browse files Browse the repository at this point in the history
This PR allows to add drag and drop option when attaching images to kudos drawer
  • Loading branch information
SaraBoutej committed Aug 20, 2023
1 parent 684d6e6 commit af2d201
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<exo-drawer
ref="activityKudosDrawer"
v-draggable="enabled"
width="500px"
hide-actions
id="activityKudosDrawer"
Expand Down Expand Up @@ -83,7 +84,7 @@
:suggestor-type-of-relation="typeOfRelation"
:suggester-space-u-r-l="spaceURL"
:object-id="metadataObjectId"
object-type="activity"
:object-type="objectType"
class="flex"
autofocus />
</div>
Expand Down Expand Up @@ -166,7 +167,8 @@ export default {
currentUserId: eXo.env.portal.userIdentityId,
selectedReceiver: null,
spaceURL: null,
audience: ''
audience: '',
objectType: 'activity'
};
},
watch: {
Expand Down Expand Up @@ -283,6 +285,9 @@ export default {
ckEditorType() {
return this.isLinkedKudos ? 'activityComment' : 'activityContent';
},
enabled() {
return eXo.env.portal.editorAttachImageEnabled && eXo.env.portal.attachmentObjectTypes?.indexOf(this.objectType) >= 0;
}
},
methods: {
init() {
Expand Down

0 comments on commit af2d201

Please sign in to comment.