From 03564772aa60cbd180a705ddc0850602c16fb39a Mon Sep 17 00:00:00 2001 From: guillaume91 Date: Wed, 26 Jun 2024 14:18:54 +0200 Subject: [PATCH] session store if you have missing download --- laravel_app/app/Livewire/Components/DownloadNotification.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/laravel_app/app/Livewire/Components/DownloadNotification.php b/laravel_app/app/Livewire/Components/DownloadNotification.php index 9256d9e..83ea626 100644 --- a/laravel_app/app/Livewire/Components/DownloadNotification.php +++ b/laravel_app/app/Livewire/Components/DownloadNotification.php @@ -13,9 +13,8 @@ class DownloadNotification extends Component public function mount(Project $project) { - $this->show_download_notification = session()->get('show-download.'.$project->id,false); + $this->show_download_notification = session()->get('show-download.'.$project->id,$project->hasMissingDownloadsDateInHarvestFile()); $this->project = $project; - } public function getSessionKey()