fix: confirmation for custom labels
This commit is contained in:
		| @@ -255,7 +255,6 @@ class General extends Component | |||||||
|     } |     } | ||||||
|     public function resetDefaultLabels() |     public function resetDefaultLabels() | ||||||
|     { |     { | ||||||
|         ray('resetDefaultLabels'); |  | ||||||
|         $this->customLabels = str(implode("|", generateLabelsApplication($this->application)))->replace("|", "\n"); |         $this->customLabels = str(implode("|", generateLabelsApplication($this->application)))->replace("|", "\n"); | ||||||
|         $this->ports_exposes = $this->application->ports_exposes; |         $this->ports_exposes = $this->application->ports_exposes; | ||||||
| 
 | 
 | ||||||
|   | |||||||
| @@ -242,7 +242,10 @@ | |||||||
|                     @endif |                     @endif | ||||||
|                 </div> |                 </div> | ||||||
|                 <x-forms.textarea label="Container Labels" rows="15" id="customLabels"></x-forms.textarea> |                 <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 |             @endif | ||||||
| 
 | 
 | ||||||
|             <h3 class="pt-8">Pre/Post Deployment Commands</h3> |             <h3 class="pt-8">Pre/Post Deployment Commands</h3> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Andras Bacsai
					Andras Bacsai