diff --git a/frontend-internal/src/lib/components/IssueModal.svelte b/frontend-internal/src/lib/components/IssueModal.svelte
new file mode 100644
index 0000000..a371ebc
--- /dev/null
+++ b/frontend-internal/src/lib/components/IssueModal.svelte
@@ -0,0 +1,230 @@
+
+
+
+
+
+
+
e.key === 'Escape' && handleClose()}
+ />
+
+
+
+
+
+
Crear Asunto
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {#if users.length > 0}
+
+
+
+ {#each users as user}
+
+ {/each}
+
+ {#if taggedUserIds.length > 0}
+
+ {taggedUserIds.length} usuario{taggedUserIds.length > 1 ? 's' : ''} seleccionado{taggedUserIds.length > 1 ? 's' : ''}
+
+ {/if}
+
+ {/if}
+
+
+
+
+
+ {#if file}
+
{file.name}
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend-internal/src/routes/tickets/[id]/+page.svelte b/frontend-internal/src/routes/tickets/[id]/+page.svelte
index 7c3bf9d..95c96b9 100644
--- a/frontend-internal/src/routes/tickets/[id]/+page.svelte
+++ b/frontend-internal/src/routes/tickets/[id]/+page.svelte
@@ -5,8 +5,11 @@
import { api } from '$lib/utils/api';
import { onMount } from 'svelte';
import ParticipantsModal from '$lib/components/ParticipantsModal.svelte';
+ import IssueModal from '$lib/components/IssueModal.svelte';
let showParticipants = false;
+ let showIssueModal = false;
+ let issues = [];
let ticketId: string;
let ticket = null;
let comments = [];
@@ -56,6 +59,7 @@
comments = commentsData;
attachments = attachmentsData;
users = usersData;
+ issues = issuesData;
} catch (e) {
toast.error('Error cargando ticket: ' + (e.message || 'Error desconocido'));
} finally {
@@ -377,15 +381,46 @@
-
-
-
Asunto
-
-
+
+
+
+ Asuntos {#if issues.length > 0}({issues.length}){/if}
+
+
+
+ {#if issues.length > 0}
+
+ {#each issues as issue}
+
+
+
{issue.content}
+
+ {issue.priority}
+
+ {#if issue.tagged_users?.length > 0}
+
+ {#each issue.tagged_users as u}
+
+ {u.full_name}
+
+ {/each}
+
+ {/if}
+
{issue.created_by_name}
+
+ {/each}
+
+ {:else}
+
No hay asuntos creados.
+ {/if}
+
{#if ticket.sla_response_due || ticket.sla_resolution_due}
@@ -449,4 +484,12 @@
on:close={() => showParticipants = false}
/>
{/if}
+{#if showIssueModal && ticket}
+
showIssueModal = false}
+ on:created={() => { showIssueModal = false; loadData(); }}
+ />
+{/if}