Skip to content

Commit

Permalink
Merge branch 'master' into feature/password-changing
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Dec 10, 2024
2 parents 355528c + 5b2b660 commit ffac7d8
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ import proposals from '@model/contracts/shared/voting/proposals.js'
import {
PROPOSAL_GENERIC,
GROUP_NAME_MAX_CHAR,
GROUP_DESCRIPTION_MAX_CHAR
GROUP_DESCRIPTION_MAX_CHAR,
GROUP_MINCOME_MAX
} from '@model/contracts/shared/constants.js'
import currencies, { mincomePositive, normalizeCurrency } from '@model/contracts/shared/currencies.js'
import { L } from '@common/common.js'
Expand All @@ -75,7 +76,7 @@ import {
// we use require instead of import with this file to make rollup happy
// or not... using require only makes rollup happy during compilation
// but then the browser complains about "require is not defined"
import { required, between, maxLength } from 'vuelidate/lib/validators'
import { required, between, maxLength, maxValue } from 'vuelidate/lib/validators'
export default ({
name: 'GroupCreationModal',
Expand Down Expand Up @@ -188,7 +189,8 @@ export default ({
[L('The amount must be a number. (E.g. 100.75)')]: function (value) {
return currencies[this.form.mincomeCurrency].validate(value)
},
[L('Mincome must be greater than 0')]: mincomePositive
[L('Mincome must be greater than 0')]: mincomePositive,
[L('Mincome cannot exceed {max}', { max: GROUP_MINCOME_MAX })]: maxValue(GROUP_MINCOME_MAX)
},
mincomeCurrency: {
required
Expand Down

0 comments on commit ffac7d8

Please sign in to comment.