mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
osm data
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
namespace App\Http\Livewire\Meetup;
|
namespace App\Http\Livewire\Meetup;
|
||||||
|
|
||||||
use App\Models\Meetup;
|
use App\Models\Meetup;
|
||||||
use App\Support\Carbon;
|
|
||||||
use Illuminate\Support\Facades\Http;
|
use Illuminate\Support\Facades\Http;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@@ -54,20 +53,24 @@ class PrepareForBtcMapItem extends Component
|
|||||||
if ($this->meetup->city->osm_relation) {
|
if ($this->meetup->city->osm_relation) {
|
||||||
$this->selectedItem = $this->meetup->city->osm_relation;
|
$this->selectedItem = $this->meetup->city->osm_relation;
|
||||||
}
|
}
|
||||||
|
$this->population = $this->meetup->city->population;
|
||||||
|
$this->population_date = $this->meetup->city->population_date;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updatedPopulation($value)
|
public function updatedPopulation($value)
|
||||||
{
|
{
|
||||||
$this->meetup->city->population = $value;
|
$this->meetup->city->population = $value;
|
||||||
$this->meetup->city->save();
|
$this->meetup->city->save();
|
||||||
$this->notification()->success('Population updated', 'Success');
|
$this->notification()
|
||||||
|
->success('Population updated', 'Success');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updatedPopulationDate($value)
|
public function updatedPopulationDate($value)
|
||||||
{
|
{
|
||||||
$this->meetup->city->population_date = $value;
|
$this->meetup->city->population_date = $value;
|
||||||
$this->meetup->city->save();
|
$this->meetup->city->save();
|
||||||
$this->notification()->success('Population date updated', 'Success');
|
$this->notification()
|
||||||
|
->success('Population date updated', 'Success');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function selectItem($index, bool $isState = false, $isCountry = false)
|
public function selectItem($index, bool $isState = false, $isCountry = false)
|
||||||
|
|||||||
Reference in New Issue
Block a user