Skip to content

Commit

Permalink
Only disable project if editing (#5410)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored Oct 30, 2024
1 parent bdb63ab commit 8fa2279
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/dispatch/static/dispatch/src/case/DetailsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
/>
</v-col>
<v-col cols="6">
<project-select v-model="project" disabled />
<project-select v-model="project" :disabled="project_disabled" />
</v-col>
<v-col cols="6">
<case-type-select v-model="case_type" :project="project" />
Expand Down Expand Up @@ -239,6 +239,9 @@ export default {
"selected.triage_at",
"selected.visibility",
]),
project_disabled(item) {
return item.id != null
},
},
}
</script>
Expand Down
5 changes: 4 additions & 1 deletion src/dispatch/static/dispatch/src/incident/DetailsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
/>
</v-col>
<v-col cols="6">
<project-select v-model="project" disabled />
<project-select v-model="project" :disabled="project_disabled" />
</v-col>
<v-col cols="6">
<incident-type-select v-model="incident_type" :project="project" />
Expand Down Expand Up @@ -189,6 +189,9 @@ export default {
"selected.title",
"selected.visibility",
]),
project_disabled(item) {
return item.id != null
},
},
}
</script>

0 comments on commit 8fa2279

Please sign in to comment.