diff --git a/laravel_app/app/Livewire/Components/PendingMessage.php b/laravel_app/app/Livewire/Components/PendingMessage.php index 92d858c..cb7c284 100644 --- a/laravel_app/app/Livewire/Components/PendingMessage.php +++ b/laravel_app/app/Livewire/Components/PendingMessage.php @@ -17,17 +17,11 @@ class PendingMessage extends Component public function mount(Project $project,string $type = null): void { - logger('in PendingMessage->mount();'); $this->project = Project::find($project->id); $this->type = $type; $this->count = static::getPendingCount($project,$type); } - public function boot() - { - logger('in PendingMessage->boot();'); - } - public static function getPendingCount(Project $p,string $t): int { return (match($t){ @@ -40,7 +34,6 @@ public static function getPendingCount(Project $p,string $t): int public function updateSelf() { - logger($this->attributes->toJson()); $this->count = static::getPendingCount($this->project, $this->type); } diff --git a/laravel_app/app/Livewire/Projects/Tabs/Download.php b/laravel_app/app/Livewire/Projects/Tabs/Download.php index 7212866..7e5a53d 100644 --- a/laravel_app/app/Livewire/Projects/Tabs/Download.php +++ b/laravel_app/app/Livewire/Projects/Tabs/Download.php @@ -87,6 +87,7 @@ public function render() $query = $this->applySearch($query); $downloads = $query->paginate(10, pageName: 'downloadPage'); + logger(sprintf('%s %s', __CLASS__, now())); return view('livewire.projects.tabs.download', compact('downloads') ); diff --git a/laravel_app/resources/views/livewire/projects/tabs/download.blade.php b/laravel_app/resources/views/livewire/projects/tabs/download.blade.php index 3448b9a..88efc5c 100644 --- a/laravel_app/resources/views/livewire/projects/tabs/download.blade.php +++ b/laravel_app/resources/views/livewire/projects/tabs/download.blade.php @@ -2,11 +2,7 @@
- Pending downloads for this project: {{ $project->downloads()->statusPending()->count() }} -
- @endif +- Pending mosaics for this project: {{ $project->mosaics()->statusPending()->count() }} -
- @endif +Pending reports for this project: {{ $project->reports()->statusPending()->count() }}
--}}