coolify/resources/views
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
..
auth Changes auto-committed by Conductor (#6908) 2025-10-16 17:33:42 +02:00
components fix: Monaco editor empty for docker compose applications 2025-10-27 12:48:20 +01:00
emails feat: implement Hetzner deletion failure notification system with email and messaging support 2025-10-10 09:35:58 +02:00
errors fix(errors): update error pages to provide navigation options 2025-08-22 14:00:01 +02:00
layouts fix: eliminate dark mode white screen flicker on page transitions 2025-10-23 20:46:58 +02:00
livewire feat: add dynamic viewport-based height for compose editor 2025-10-27 11:18:25 +01:00
server
source feat(project): enhance project index with resource creation capabilities 2025-10-07 17:17:31 +02:00
vendor/mail