mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #1986 from gradido/fix-max-amount-on-edit-contribution
fix: Max Amount on Slider for Edit Contribution
This commit is contained in:
commit
a959db8d03
@ -103,7 +103,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
text: !this.creationUserData.memo ? '' : this.creationUserData.memo,
|
text: !this.creationUserData.memo ? '' : this.creationUserData.memo,
|
||||||
value: !this.creationUserData.amount ? 0 : this.creationUserData.amount,
|
value: !this.creationUserData.amount ? 0 : Number(this.creationUserData.amount),
|
||||||
rangeMin: 0,
|
rangeMin: 0,
|
||||||
rangeMax: 1000,
|
rangeMax: 1000,
|
||||||
selected: '',
|
selected: '',
|
||||||
@ -155,7 +155,7 @@ export default {
|
|||||||
const month = this.$d(new Date(this.creationUserData.date), 'month')
|
const month = this.$d(new Date(this.creationUserData.date), 'month')
|
||||||
const index = this.radioOptions.findIndex((obj) => obj.item.short === month)
|
const index = this.radioOptions.findIndex((obj) => obj.item.short === month)
|
||||||
this.selected = this.radioOptions[index].item
|
this.selected = this.radioOptions[index].item
|
||||||
this.rangeMax = this.creation[index] + this.creationUserData.amount
|
this.rangeMax = Number(this.creation[index]) + Number(this.creationUserData.amount)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user