Skip to content

Commit

Permalink
fixes case page to show escalation (#5462)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored Nov 14, 2024
1 parent a557071 commit f42ce77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const changeStatus = async (newStatus) => {
}
const openDialog = (newStatus) => {
if (newStatus == "Escalated") {
if (newStatus == "Escalated" && !isActiveStatus("Escalated")) {
const caseDetails = store.state.case_management.selected
store.dispatch("case_management/showEscalateDialog", caseDetails)
return
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/static/dispatch/src/case/EscalateDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default {
this.incidentDescription = this.caseDescription
this.incidentTitle = this.caseTitle
this.incidentProject = this.caseProject ? this.caseProject : null
this.incidentType = this.caseType.incident_type ? this.caseType.incident_type : null
this.incidentType = this.caseType?.incident_type ? this.caseType.incident_type : null
}
)
},
Expand Down
2 changes: 2 additions & 0 deletions src/dispatch/static/dispatch/src/case/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ const actions = {
commit("SET_DIALOG_ESCALATE", false)
commit("RESET_SELECTED")
commit("incident/RESET_SELECTED", null, { root: true })
// force page reload to pick up the change to status
window.location.reload()
},
showHandoffDialog({ commit }, value) {
commit("SET_DIALOG_SHOW_HANDOFF", true)
Expand Down

0 comments on commit f42ce77

Please sign in to comment.