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 `