refactor(domains): rename check_domain_usage to checkDomainUsage and update references across the application

This commit is contained in:
Andras Bacsai
2025-08-28 10:00:19 +02:00
parent c156d5c705
commit e0aa28ba31
7 changed files with 84 additions and 79 deletions

View File

@@ -485,7 +485,7 @@ class General extends Component
}
}
}
check_domain_usage(resource: $this->application);
checkDomainUsage(resource: $this->application);
$this->application->fqdn = $domains->implode(',');
$this->resetDefaultLabels(false);
}
@@ -588,7 +588,7 @@ class General extends Component
}
}
}
check_domain_usage(resource: $this->application);
checkDomainUsage(resource: $this->application);
$this->application->save();
$this->resetDefaultLabels();
}

View File

@@ -63,7 +63,7 @@ class Previews extends Component
$this->dispatch('error', 'Validating DNS failed.', "Make sure you have added the DNS records correctly.<br><br>$preview->fqdn->{$this->application->destination->server->ip}<br><br>Check this <a target='_blank' class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/dns-configuration'>documentation</a> for further help.");
$success = false;
}
check_domain_usage(resource: $this->application, domain: $preview->fqdn);
checkDomainUsage(resource: $this->application, domain: $preview->fqdn);
}
if (! $preview) {

View File

@@ -37,7 +37,7 @@ class EditDomain extends Component
if ($warning) {
$this->dispatch('warning', __('warning.sslipdomain'));
}
check_domain_usage(resource: $this->application);
checkDomainUsage(resource: $this->application);
$this->validate();
$this->application->save();
updateCompose($this->application);

View File

@@ -145,7 +145,7 @@ class ServiceApplicationView extends Component
if ($warning) {
$this->dispatch('warning', __('warning.sslipdomain'));
}
check_domain_usage(resource: $this->application);
checkDomainUsage(resource: $this->application);
$this->validate();
$this->application->save();
updateCompose($this->application);

View File

@@ -108,7 +108,7 @@ class Index extends Component
}
}
if ($this->fqdn) {
check_domain_usage(domain: $this->fqdn);
checkDomainUsage(domain: $this->fqdn);
}
$this->instantSave(isSave: false);