coolify/app/Livewire/Project/Application
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
..
Deployment feat(deployment): add pull request filtering and pagination to deployment and backup execution components 2025-07-13 12:36:53 +02:00
Preview feat(acl): Change views/backend code to able to use proper ACL's later on. Currently it is not enabled. 2025-08-26 10:27:38 +02:00
Advanced.php feat(settings): add option to restrict PR deployments to repository members and contributors 2025-09-05 14:30:51 +02:00
Configuration.php fix(application-configuration): prevent access to preview deployments for deploy_key applications and update menu visibility accordingly 2025-05-30 14:15:07 +02:00
DeploymentNavbar.php feat(deployments): add log copying functionality to clipboard in dev 2025-10-02 18:34:39 +02:00
General.php fix: Monaco editor empty for docker compose applications 2025-10-27 12:48:20 +01:00
Heading.php Fix loading icon showing during automatic status checks 2025-10-24 12:58:52 +02:00
Previews.php Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
PreviewsCompose.php Fix preview domain generation for services with multiple domains 2025-10-16 13:10:29 +02:00
Rollback.php feat(auth): implement authorization checks for application management 2025-08-22 16:47:59 +02:00
Source.php fix(git): trim whitespace from repository, branch, and commit SHA fields 2025-09-30 12:33:40 +02:00
Swarm.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00