diff --git a/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php b/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php index 96ef0fd..1f51c96 100644 --- a/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php +++ b/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php @@ -30,6 +30,12 @@ public function mount($containerId = 'plan7__selector') $this->getData(); } } + public function updated($property, $value) + { + if ($property === 'complexId') { + $this->mount(); + } + } private function getSummary() { $URL = $this->apiSummary; diff --git a/app/Modules/Plan7/Views/livewire/selector.blade.php b/app/Modules/Plan7/Views/livewire/selector.blade.php index 74970ae..e2a3da2 100644 --- a/app/Modules/Plan7/Views/livewire/selector.blade.php +++ b/app/Modules/Plan7/Views/livewire/selector.blade.php @@ -22,6 +22,7 @@ Выбрать помещение @endif + {{ $complexId }} @@ -37,6 +38,7 @@