This commit is contained in:
Mark Gregory
2026-06-23 11:51:01 +01:00
parent cd52a0bbda
commit e79cadc7f8
6 changed files with 38 additions and 2 deletions
+11
View File
@@ -14,6 +14,7 @@ use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Str;
use Illuminate\Validation\Rule;
use Livewire\Attributes\On;
use Livewire\Attributes\Validate;
use Livewire\Component;
use Livewire\Features\SupportFileUploads\TemporaryUploadedFile;
@@ -119,6 +120,16 @@ final class TicketShow extends Component
$this->dispatch('helpdesk-reply-added');
}
/**
* Refresh ticket aggregates and the time-log modal after the timer component starts or stops.
*/
#[On('helpdesk-ticket-time-log-updated')]
public function refreshAfterTimeLogUpdate(): void
{
$this->ticket = $this->freshTicket($this->ticket);
}
public function applyCannedResponse(CannedResponseRenderer $renderer): void
{
$this->authorize('comment', $this->ticket);