Skip to content

Commit

Permalink
Two bug-fixes (#2405)
Browse files Browse the repository at this point in the history
* make sure non-monetary is not blank

* fix typo

* add variable
  • Loading branch information
SebinSong authored Oct 30, 2024
1 parent affa615 commit a1294ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fieldset(
.inputgroup
input.input(
type='text'
v-model='pledge.value'
v-model.trim='pledge.value'
data-test='inputNonMonetaryPledge'
:maxlength='config.maxChar'
:aria-label='L("Pledge value")'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ modal-template(ref='modal' :a11yTitle='L("Add new members")')
.c-container
template(v-if='link')
i18n.is-title-4(tag='h3') Share this link to grant access to your group.
i18n.has-text-1(tag='p') After the onboarding period has ended, everyone will be asked to vote on whether or not a new member should be added. But for now, enjoy 60 free passes!
i18n.has-text-1(tag='p' :args='{ count: anyoneLinkMax }') After the onboarding period has ended, everyone will be asked to vote on whether or not a new member should be added. But for now, enjoy {count} free passes!
link-to-copy.c-link(:link='link')
i18n.has-text-1(v-if='expireDate' tag='p' :args='{ expireDate }') This invite link expires on {expireDate}.
i18n.has-text-1(v-else tag='p') This invite link doesn't expire
Expand All @@ -33,6 +33,7 @@ import { humanDate } from '@model/contracts/shared/time.js'
import { REPLACE_MODAL } from '@utils/events.js'
import SvgBrokenLink from '@svgs/broken-link.svg'
import { buildInvitationUrl } from '@view-utils/buildInvitationUrl.js'
import { MAX_GROUP_MEMBER_COUNT } from '@model/contracts/shared/constants.js'
export default ({
name: 'InvitationLinkModal',
Expand Down Expand Up @@ -62,6 +63,9 @@ export default ({
},
expireDate () {
return humanDate(this.currentWelcomeInvite.expires, { month: 'long', day: 'numeric' })
},
anyoneLinkMax () {
return MAX_GROUP_MEMBER_COUNT
}
},
methods: {
Expand Down

0 comments on commit a1294ef

Please sign in to comment.