Skip to content

Commit

Permalink
feat: Disable send kudos button when no receiver has been added - MEE…
Browse files Browse the repository at this point in the history
…D-2418 - Meeds-io/meeds#54 (#328)

This change will disable the send kudos button when no receiver has been added.
  • Loading branch information
MayTekayaa committed Sep 8, 2023
1 parent d2aa9f9 commit b6572fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export default {
return this.numberOfKudosAllowed - this.remainingKudos;
},
sendButtonDisabled() {
return !this.kudosMessageText|| this.kudosMessageTextLength > this.MESSAGE_MAX_LENGTH || this.kudosMessageValidityLabel ;
return !this.kudosMessageText|| this.kudosMessageTextLength > this.MESSAGE_MAX_LENGTH || this.kudosMessageValidityLabel || !this.selectedReceiver;
},
remainingPeriodLabel() {
return this.remainingDaysToReset === 1 ? this.$t('exoplatform.kudos.label.day') : this.$t('exoplatform.kudos.label.days') ;
Expand Down

0 comments on commit b6572fe

Please sign in to comment.