coolify/resources/views/components/forms
Andras Bacsai 261dc39f02 fix: Monaco editor empty for docker compose applications
This commit fixes two related issues preventing the Monaco editor from displaying Docker Compose file content:

1. Data Sync Issue:
   - After loadComposeFile() fetches the compose content from Git and updates the database model, the Livewire component properties were never synced
   - Monaco editor binds to component properties via wire:model, so it remained empty
   - Fixed by calling syncFromModel() after refresh() in loadComposeFile() method

2. Script Duplication Issue:
   - Multiple Monaco editors on the same page (compose files, dockerfile, labels) caused race condition
   - Each instance tried to inject the Monaco loader script simultaneously
   - Resulted in "SyntaxError: Identifier '_amdLoaderGlobal' has already been declared"
   - Fixed by adding a global flag to prevent duplicate script injection

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27 12:48:20 +01:00
..
button.blade.php feat: migrate env variables to polymorphic relationship 2024-12-17 10:38:42 +01:00
checkbox.blade.php Fix duplicate HTML ID warnings in form components 2025-10-14 10:27:41 +02:00
copy-button.blade.php fix(ui): only show copy button on https 2025-04-02 19:38:53 +02:00
datalist.blade.php Improve SSH key filtering and datalist component 2025-10-23 16:18:20 +02:00
input.blade.php Fix wire:dirty indicator appearing on readonly fields without wire:model binding 2025-10-16 11:09:39 +02:00
monaco-editor.blade.php fix: Monaco editor empty for docker compose applications 2025-10-27 12:48:20 +01:00
select.blade.php Fix wire:dirty indicator appearing on readonly fields without wire:model binding 2025-10-16 11:09:39 +02:00
textarea.blade.php Fix wire:dirty indicator appearing on readonly fields without wire:model binding 2025-10-16 11:09:39 +02:00