Skip to content

Commit

Permalink
fix: Review the display of the composer drawer when space audience ch…
Browse files Browse the repository at this point in the history
…osen - MEED-2569 - Meeds-io/MIP#54 (#374)

This change will add some adjustments to the kudos drawer audience.
  • Loading branch information
MayTekayaa committed Sep 28, 2023
1 parent 750ab07 commit 04762f0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
icon
v-bind="attrs"
v-on="on"
@click="removeAudience()">
@click="resetAudienceChoice()">
<v-icon size="14">
fas fa-redo
</v-icon>
Expand Down Expand Up @@ -398,7 +398,7 @@ export default {
return this.postInYourSpacesChoice && !this.audience;
},
audienceTypesDisplay() {
return (!this.spaceId && !this.isLinkedKudos) || (!this.spaceId && !this.readOnlySpace) || !this.readOnlySpace;
return (!this.spaceId && !this.isLinkedKudos) || (!this.spaceId && !this.readOnlySpace) || (!this.readOnlySpace && this.postInYourSpacesChoice && !this.audience);
},
audienceAvatarDisplay() {
return (this.audience && this.postInYourSpacesChoice) || this.readOnlySpace;
Expand Down Expand Up @@ -585,7 +585,6 @@ export default {
.then(() => {
this.selectedReceiver = null;
this.resetAudienceChoice();
this.removeAudience();
this.noReceiverIdentityId = false;
this.$refs.activityKudosDrawer.close();
this.displayAlert(this.$t('exoplatform.kudos.success.kudosSent'));
Expand Down Expand Up @@ -623,6 +622,7 @@ export default {
},
resetAudienceChoice() {
this.audienceChoice = null;
this.audience = '';
},
removeAudience() {
this.audience = '';
Expand Down

0 comments on commit 04762f0

Please sign in to comment.