diff --git a/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php b/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php index 1f51c96..38b0170 100644 --- a/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php +++ b/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php @@ -9,7 +9,7 @@ class Plan7SelectorLivewire extends Component { public $mode = 'new'; public $complexId; - public $containerId; + public $containerId = 'plan7__selector'; public $filter = []; public $allObjects; @@ -20,9 +20,8 @@ class Plan7SelectorLivewire extends Component public $objects = []; private $apiSummary; private $apiAll; - public function mount($containerId = 'plan7__selector') + public function mount() { - $this->containerId = $containerId; if ($plan7ApiData = Complex::find($this->complexId)->getPlan7ApiData()) { $this->apiSummary = 'https://plan7.ru/catalog/exp/json/summary/?token=' . $plan7ApiData->token . '&zk=' . $plan7ApiData->zk; $this->apiAll = 'https://plan7.ru/catalog/exp/json/?token=' . $plan7ApiData->token . '&zk=' . $plan7ApiData->zk; diff --git a/app/Modules/Plan7/Views/livewire/selector.blade.php b/app/Modules/Plan7/Views/livewire/selector.blade.php index e2a3da2..bdad764 100644 --- a/app/Modules/Plan7/Views/livewire/selector.blade.php +++ b/app/Modules/Plan7/Views/livewire/selector.blade.php @@ -21,8 +21,9 @@ @else Выбрать помещение @endif + [{{ {{ $complexId }} }}] - {{ $complexId }} +