lasthourcloud/app/Livewire/Project/Shared/ConfigurationChecker.php

40 lines
1.0 KiB
PHP
Raw Normal View History

<?php
namespace App\Livewire\Project\Shared;
use App\Models\Application;
use App\Models\Service;
use App\Models\StandaloneClickhouse;
use App\Models\StandaloneDragonfly;
use App\Models\StandaloneKeydb;
use App\Models\StandaloneMariadb;
use App\Models\StandaloneMongodb;
use App\Models\StandaloneMysql;
use App\Models\StandalonePostgresql;
use App\Models\StandaloneRedis;
use Livewire\Component;
class ConfigurationChecker extends Component
{
public bool $isConfigurationChanged = false;
2024-06-10 20:43:34 +00:00
public Application|Service|StandaloneRedis|StandalonePostgresql|StandaloneMongodb|StandaloneMysql|StandaloneMariadb|StandaloneKeydb|StandaloneDragonfly|StandaloneClickhouse $resource;
2024-06-10 20:43:34 +00:00
protected $listeners = ['configurationChanged'];
2024-06-10 20:43:34 +00:00
public function mount()
{
$this->configurationChanged();
}
2024-06-10 20:43:34 +00:00
public function render()
{
return view('livewire.project.shared.configuration-checker');
}
2024-06-10 20:43:34 +00:00
public function configurationChanged()
{
$this->isConfigurationChanged = $this->resource->isConfigurationChanged();
}
}