Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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