-
-
- Raven
+
+
+ Sistema de chamados
+ Por Rever Tecnologia
+
diff --git a/src/app/tickets/[id]/page.tsx b/src/app/tickets/[id]/page.tsx
index d5e69c4..56b2a6f 100644
--- a/src/app/tickets/[id]/page.tsx
+++ b/src/app/tickets/[id]/page.tsx
@@ -18,8 +18,8 @@ export default async function TicketDetailPage({ params }: TicketDetailPageProps
Compartilhar}
- primaryAction={}
+ secondaryAction={}
+ primaryAction={Compartilhar}
/>
}
>
diff --git a/src/components/tickets/status-select.tsx b/src/components/tickets/status-select.tsx
index e1c9a3f..64b4b46 100644
--- a/src/components/tickets/status-select.tsx
+++ b/src/components/tickets/status-select.tsx
@@ -83,11 +83,13 @@ export function StatusSelect({
value,
tenantId,
requesterName,
+ showCloseButton = true,
}: {
ticketId: string
value: TicketStatus
tenantId: string
requesterName?: string | null
+ showCloseButton?: boolean
}) {
const { convexUserId } = useAuth()
const actorId = (convexUserId ?? null) as Id<"users"> | null
@@ -104,38 +106,42 @@ export function StatusSelect({
{statusStyles[status]?.label ?? statusStyles.PENDING.label}
-
-
-
-
-
- Encerrar ticket
-
-
+ {showCloseButton ? (
+
+
+
+
+
+ Encerrar ticket
+
+
+ ) : null}
- {/* Dialog control moved to header; keep for status-only contexts */}
-
{
- if (!open) setCloseDialogOpen(false)
- }}
- ticketId={ticketId}
- tenantId={tenantId}
- actorId={actorId}
- requesterName={requesterName}
- onSuccess={() => {
- setStatus("RESOLVED")
- setCloseDialogOpen(false)
- }}
- />
+ {/* Dialog control visível apenas quando o botão de encerrar está presente */}
+ {showCloseButton ? (
+ {
+ if (!open) setCloseDialogOpen(false)
+ }}
+ ticketId={ticketId}
+ tenantId={tenantId}
+ actorId={actorId}
+ requesterName={requesterName}
+ onSuccess={() => {
+ setStatus("RESOLVED")
+ setCloseDialogOpen(false)
+ }}
+ />
+ ) : null}
>
)
}
diff --git a/src/components/tickets/ticket-summary-header.tsx b/src/components/tickets/ticket-summary-header.tsx
index 0033a66..6fd9441 100644
--- a/src/components/tickets/ticket-summary-header.tsx
+++ b/src/components/tickets/ticket-summary-header.tsx
@@ -621,7 +621,7 @@ export function TicketSummaryHeader({ ticket }: TicketHeaderProps) {