Skip to content

Commit

Permalink
fix: fix validation from edit maintenance entry
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
  • Loading branch information
meteyou committed Apr 28, 2024
1 parent 1ae443f commit 7966f7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/dialogs/HistoryListPanelEditMaintenance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ export default class HistoryListPanelAddMaintenance extends Mixins(BaseMixin) {
if (this.reminder !== null) {
if (!this.reminderFilament && !this.reminderPrinttime && !this.reminderDate) return false
if (this.reminderFilament && !this.reminderFilamentValue) return false
if (this.reminderPrinttime && !this.reminderPrinttimeValue) return false
if (this.reminderDate && !this.reminderDateValue) return false
if (this.reminderFilament && this.reminderFilamentValue <= 0) return false
if (this.reminderPrinttime && this.reminderPrinttimeValue <= 0) return false
if (this.reminderDate && this.reminderDateValue <= 0) return false
}
return true
Expand Down

0 comments on commit 7966f7e

Please sign in to comment.