feat: add repo_url to app data and update frontend to conditionally display Git Pull button

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Jakub Dorfman 2026-04-29 18:53:02 +02:00
parent 4be4ae4144
commit f173246581
3 changed files with 4 additions and 2 deletions

View file

@ -535,7 +535,7 @@ function renderAppCard(app) {
<button class="btn-sm btn-primary" data-action="deploy" data-app="${app.name}">Deploy</button>
<button class="btn-sm" data-action="restart" data-app="${app.name}">Restart</button>
<button class="btn-sm" data-action="stop" data-app="${app.name}">Stop</button>
<button class="btn-sm" data-action="repo-pull" data-app="${app.name}">Git Pull</button>
${app.repo_url ? `<button class="btn-sm" data-action="repo-pull" data-app="${app.name}">Git Pull</button>` : ""}
<button class="btn-sm btn-danger" data-action="remove" data-app="${app.name}">Remove</button>
</div>
</div>