-
-
- {{ trans(CHILL_TICKET_TICKET_BANNER_EMERGENCY) }}
-
-
+
+ {{ trans(CHILL_TICKET_TICKET_BANNER_EMERGENCY) }}
+
diff --git a/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/components/TicketInitFormComponent.vue b/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/components/TicketInitFormComponent.vue
index 1a995010c..19d1c4c2e 100644
--- a/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/components/TicketInitFormComponent.vue
+++ b/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/components/TicketInitFormComponent.vue
@@ -76,7 +76,7 @@ import CommentEditorComponent from "./Comment/CommentEditorComponent.vue";
import PersonsSelectorComponent from "./Person/PersonsSelectorComponent.vue";
// Types
-import { Motive, TicketInitForm } from "../../../types";
+import { Motive, Ticket, TicketInitForm } from "../../../types";
import { Person } from "ChillPersonAssets/types";
// Translations
@@ -92,7 +92,8 @@ import {
CHILL_TICKET_TICKET_SET_PERSONS_USER_LABEL,
} from "translator";
-defineProps<{
+const props = defineProps<{
+ ticket: Ticket;
motives: Motive[];
suggestedPersons: Person[];
}>();
@@ -106,9 +107,9 @@ const store = useStore();
const ticketForm = reactive({
content: "",
- motive: undefined as Motive | undefined,
- persons: [] as Person[],
- caller: null as Person | null,
+ motive: props.ticket.currentMotive as Motive | null,
+ persons: props.ticket.currentPersons as Person[],
+ caller: props.ticket.caller as Person | null,
} as TicketInitForm);
watch(
diff --git a/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/store/modules/comment.ts b/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/store/modules/comment.ts
index ab8192df8..8f1ff9dde 100644
--- a/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/store/modules/comment.ts
+++ b/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/store/modules/comment.ts
@@ -64,7 +64,7 @@ export const moduleComment: Module