refactor(domains): rename check_domain_usage to checkDomainUsage and update references across the application
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
@@ -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) {
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user