Skip to content

Commit

Permalink
fix: don't allow replying on closed tickets (#1642)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadrak98 authored Dec 6, 2023
1 parent 864d046 commit d0ba8b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions desk/src/pages/ticket/TicketCustomer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<TicketConversation class="grow" />
<span class="m-5">
<TicketTextEditor
v-if="showEditor"
ref="editor"
v-model:attachments="attachments"
v-model:content="editorContent"
Expand Down Expand Up @@ -130,4 +131,8 @@ const showReopenButton = computed(
const showResolveButton = computed(() =>
["Open", "Replied"].includes(ticket.data.status)
);
const showEditor = computed(() =>
["Open", "Replied", "Resolved"].includes(ticket.data.status)
);
</script>

0 comments on commit d0ba8b4

Please sign in to comment.