mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
Refactor method 'disabled'
This commit is contained in:
parent
d377fc0241
commit
d49a99fcff
@ -127,8 +127,7 @@ export default {
|
|||||||
return new Date(this.maximalDate.getFullYear(), this.maximalDate.getMonth() - 1, 1)
|
return new Date(this.maximalDate.getFullYear(), this.maximalDate.getMonth() - 1, 1)
|
||||||
},
|
},
|
||||||
disabled() {
|
disabled() {
|
||||||
// Wolle: refactor
|
return (
|
||||||
if (
|
|
||||||
this.form.date === '' ||
|
this.form.date === '' ||
|
||||||
this.form.memo.length < this.minlength ||
|
this.form.memo.length < this.minlength ||
|
||||||
this.form.memo.length > this.maxlength ||
|
this.form.memo.length > this.maxlength ||
|
||||||
@ -137,8 +136,6 @@ export default {
|
|||||||
(this.isThisMonth && parseInt(this.form.amount) > parseInt(this.maxGddThisMonth)) ||
|
(this.isThisMonth && parseInt(this.form.amount) > parseInt(this.maxGddThisMonth)) ||
|
||||||
(!this.isThisMonth && parseInt(this.form.amount) > parseInt(this.maxGddLastMonth))
|
(!this.isThisMonth && parseInt(this.form.amount) > parseInt(this.maxGddLastMonth))
|
||||||
)
|
)
|
||||||
return true
|
|
||||||
return false
|
|
||||||
},
|
},
|
||||||
lastMonthObject() {
|
lastMonthObject() {
|
||||||
// Wolle: refine logic and melt with 'thisMonthObject'
|
// Wolle: refine logic and melt with 'thisMonthObject'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user