fix: confirmation for custom labels

This commit is contained in:
Andras Bacsai 2024-05-06 12:52:06 +02:00
parent d46ff76887
commit 6b4987bf39
2 changed files with 4 additions and 2 deletions

View File

@ -255,7 +255,6 @@ public function getWildcardDomain()
}
public function resetDefaultLabels()
{
ray('resetDefaultLabels');
$this->customLabels = str(implode("|", generateLabelsApplication($this->application)))->replace("|", "\n");
$this->ports_exposes = $this->application->ports_exposes;

View File

@ -242,7 +242,10 @@ class="underline" href="https://coolify.io/docs/knowledge-base/docker/registry"
@endif
</div>
<x-forms.textarea label="Container Labels" rows="15" id="customLabels"></x-forms.textarea>
<x-forms.button wire:click="resetDefaultLabels">Reset to Coolify Generated Labels</x-forms.button>
<x-modal-confirmation buttonFullWidth action="resetDefaultLabels" buttonTitle="Reset to Coolify Generated Labels">
Are you sure you want to reset the labels to Coolify generated labels? <br>It could break the proxy configuration after you restart the container.
</x-modal-confirmation>
@endif
<h3 class="pt-8">Pre/Post Deployment Commands</h3>