fix(task): remove wrong repeat types
Repeating "monthly" or "yearly" was never what people expected, only 30 or 365 days which is not always correct. This change removes these settings since the repeating modes will be re-done anyway. Related to https://kolaente.dev/vikunja/frontend/issues/3585#issuecomment-53642
This commit is contained in:
@ -81,12 +81,6 @@ export default class TaskService extends AbstractService<ITask> {
|
||||
case 'weeks':
|
||||
repeatAfterSeconds = model.repeatAfter.amount * SECONDS_A_WEEK
|
||||
break
|
||||
case 'months':
|
||||
repeatAfterSeconds = model.repeatAfter.amount * SECONDS_A_MONTH
|
||||
break
|
||||
case 'years':
|
||||
repeatAfterSeconds = model.repeatAfter.amount * SECONDS_A_YEAR
|
||||
break
|
||||
}
|
||||
}
|
||||
model.repeatAfter = repeatAfterSeconds
|
||||
|
Reference in New Issue
Block a user