diff --git a/backend/api/actions_api.py b/backend/api/actions_api.py index 9866b22..f5adf74 100644 --- a/backend/api/actions_api.py +++ b/backend/api/actions_api.py @@ -45,7 +45,7 @@ DEFAULT_ACTION: dict = { def _presets_dir(request: Request) -> Path: - base = Path(request.app.state.config_service._path).parent.parent / "data" / "action_presets" + base = Path(request.app.state.config_service.path).parent.parent / "data" / "action_presets" base.mkdir(parents=True, exist_ok=True) return base diff --git a/frontend/templates/admin/actions.html b/frontend/templates/admin/actions.html index af85431..2f94b2e 100644 --- a/frontend/templates/admin/actions.html +++ b/frontend/templates/admin/actions.html @@ -227,8 +227,6 @@ function cardHTML(action, idx) { const name = esc(action.name || 'Sans nom'); const proc = action.processing || {}; const jc = action.jobcontrol || {}; - const ui = (action.trigger || {}).ui_trigger || {}; - const chips = [ `⏱ ${jc.countdown_capture ?? '?'}s`, ]; @@ -242,8 +240,6 @@ function cardHTML(action, idx) { chips.push('Remove BG'); if (proc.image_filter && proc.image_filter !== 'original') chips.push(`🎨 ${esc(proc.image_filter.split('.').pop())}`); - if (ui.show_button) - chips.push(`🔘 ${esc(ui.title || '')}`); return `
@@ -267,7 +263,6 @@ function cardHTML(action, idx) { function editFormHTML(action, idx) { const proc = action.processing || {}; const jc = action.jobcontrol || {}; - const ui = (action.trigger || {}).ui_trigger || {}; const frameSel = assetSelect(`ef-frame-sel-${idx}`, proc.img_frame_file || '', assets.frames, '— aucun cadre —', `ef-frame-${idx}`); const bgSel = assetSelect(`ef-bg-sel-${idx}`, proc.img_background_file || '', assets.backgrounds, '— aucun fond —', `ef-bg-${idx}`); @@ -341,30 +336,6 @@ function editFormHTML(action, idx) {
-
-
Interface photobooth (bouton UI)
-
-
- - - -
-
- - - - -
-
-
-
@@ -373,7 +344,7 @@ function editFormHTML(action, idx) { function assetSelect(selId, current, options, placeholder, textId) { const opts = options.map(f => { - const label = f.split('/').pop(); + const label = f.replace(/^userdata\//, ''); return ``; }).join(''); return `