Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function TemplatePreview({ template, onClose, onApplied }) {
timeout: 120000,
})
if (!res.ok) throw new Error(`HTTP ${res.status}`)
const data = await res.json().catch(() => ({}))
const data = await res.json()
if (data.enabled_count > 0) {
setApplied(data.restart_required ? 'restart_required' : 'enabled')
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const BASE_COMPOSE_SERVICES = new Set(['llama-server', 'open-webui', 'das
// Precedence: has_errors > in_progress > applied > available
export function getTemplateStatus(template, extensions) {
const services = template.services || []
if (services.length === 0) return 'available'
const serviceStatus = {}
for (const svcId of services) {
if (BASE_COMPOSE_SERVICES.has(svcId)) {
Expand Down
Loading