From c8dad528a8d5244cf01111523dfcadd58eb5ada1 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 15 Jul 2024 16:15:58 -0700 Subject: [PATCH] Migrate a couple items out of mount --- app/Livewire/Importer.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Livewire/Importer.php b/app/Livewire/Importer.php index 71637f61e3..4731a3c53a 100644 --- a/app/Livewire/Importer.php +++ b/app/Livewire/Importer.php @@ -11,9 +11,9 @@ class Importer extends Component { public $files; - public $progress; //upload progress - '-1' means don't show + public $progress = -1; //upload progress - '-1' means don't show public $progress_message; - public $progress_bar_class; + public $progress_bar_class = 'progress-bar-warning'; public $message; //status/error message? public $message_type; //success/error? @@ -156,8 +156,6 @@ class Importer extends Component public function mount() { $this->authorize('import'); - $this->progress = -1; // '-1' means 'don't show the progressbar' - $this->progress_bar_class = 'progress-bar-warning'; $this->importTypes = [ 'asset' => trans('general.assets'), 'accessory' => trans('general.accessories'),