feat: configuration checker for all resources
This commit is contained in:
@@ -17,6 +17,14 @@ class Navbar extends Component
|
||||
public array $query;
|
||||
public $isDeploymentProgress = false;
|
||||
|
||||
public function mount()
|
||||
{
|
||||
if (str($this->service->status())->contains('running') && is_null($this->service->config_hash)) {
|
||||
ray('isConfigurationChanged init');
|
||||
$this->service->isConfigurationChanged(true);
|
||||
$this->dispatch('configurationChanged');
|
||||
}
|
||||
}
|
||||
public function getListeners()
|
||||
{
|
||||
$userId = auth()->user()->id;
|
||||
@@ -25,12 +33,19 @@ class Navbar extends Component
|
||||
"serviceStatusChanged"
|
||||
];
|
||||
}
|
||||
public function serviceStarted() {
|
||||
public function serviceStarted()
|
||||
{
|
||||
$this->dispatch('success', 'Service status changed.');
|
||||
}
|
||||
public function serviceStatusChanged()
|
||||
{
|
||||
$this->dispatch('refresh')->self();
|
||||
// if (is_null($this->service->config_hash) || $this->service->isConfigurationChanged()) {
|
||||
// $this->service->isConfigurationChanged(true);
|
||||
// $this->dispatch('configurationChanged');
|
||||
// } else {
|
||||
// $this->dispatch('configurationChanged');
|
||||
// }
|
||||
}
|
||||
public function check_status()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user