feat(helpdesk): add refresh button to ticket detail titlebar

Adds 'Refresh data' button that re-fetches the communication feed
with ?refresh=1 to bypass the session cache. Shows loading skeleton
during reload.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-05 22:19:15 +02:00
parent 66be390fa9
commit 640da8245d
2 changed files with 16 additions and 2 deletions

View File

@@ -31,7 +31,14 @@ $backUrl = $ticketCustomerNo !== '' ? lurl('helpdesk/debitor/' . rawurlencode($t
'title' => t('Ticket') . ' ' . $ticketNo,
'backHref' => $backUrl,
'backTitle' => t('Back'),
'actions' => [],
'actions' => $ticket !== null ? [
[
'label' => t('Refresh data'),
'type' => 'button',
'name' => 'ticket-refresh',
'class' => 'secondary outline',
],
] : [],
];
require templatePath('partials/app-details-titlebar.phtml');
?>