diff --git a/app/Modules/Jobs/Presentation/Livewire/⚡calendar.blade.php b/app/Modules/Jobs/Presentation/Livewire/⚡calendar.blade.php index 6ae3c36..a40be67 100644 --- a/app/Modules/Jobs/Presentation/Livewire/⚡calendar.blade.php +++ b/app/Modules/Jobs/Presentation/Livewire/⚡calendar.blade.php @@ -61,6 +61,10 @@ new class extends Component #[Locked] public string $dialogStatus = ''; + /** The task's due date for display (j.n.Y), changed on the task's edit page. */ + #[Locked] + public string $dialogDueOn = ''; + public string $plannedFrom = ''; public string $plannedTo = ''; @@ -255,6 +259,7 @@ new class extends Component $this->dialogUserId = $userId; $this->dialogTitle = __('jobs.calendar.dialog_task', ['title' => $task->title, 'job' => $task->jobNumber]); $this->dialogStatus = $task->status->value; + $this->dialogDueOn = $task->dueOn === null ? __('jobs.not_set') : $this->shortDate($task->dueOn); $this->plannedFrom = $task->plannedFrom ?? CarbonImmutable::today()->format('Y-m-d'); $this->plannedTo = $task->plannedTo ?? ''; $this->assignee = $userId === null ? '' : (string) $userId; @@ -818,6 +823,8 @@ new class extends Component
{{ $dialogTitle }}