Skip to content

Commit

Permalink
Make only title and description required on case form (#4083)
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon authored Dec 5, 2023
1 parent 248c74e commit fa50c33
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/dispatch/static/dispatch/src/case/ReportSubmissionCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,6 @@ export default {
this.descriptionValid = !!this.description
this.checkFormValidity()
},
project() {
this.projectValid = !!this.project
this.checkFormValidity()
},
case_type() {
this.caseTypeValid = !!this.case_type
this.checkFormValidity()
},
case_priority() {
this.casePriorityValid = !!this.case_priority
this.checkFormValidity()
},
},
methods: {
Expand Down Expand Up @@ -225,12 +213,7 @@ export default {
)
},
checkFormValidity() {
this.formIsValid =
this.titleValid &&
this.descriptionValid &&
this.projectValid &&
this.caseTypeValid &&
this.casePriorityValid
this.formIsValid = this.titleValid && this.descriptionValid
},
...mapActions("case_management", ["report", "get", "resetSelected"]),
},
Expand Down

0 comments on commit fa50c33

Please sign in to comment.