fix: separate recipe preview image from task images
Recipe image_path is now used as preview thumbnail only. Removed auto-creation of "Technical Drawing" task from recipe upload, and removed recipe image strip from task_execute view. Each task displays its own file_path independently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,6 @@
|
||||
window.__taskSubtasks = {{ task.subtasks|tojson if task.subtasks else '[]' }};
|
||||
window.__taskAnnotations = {{ task.annotations_json|default('null')|tojson }};
|
||||
window.__allTaskIds = {{ all_task_ids|tojson }};
|
||||
window.__recipeImagePath = {{ (recipe.image_path or '')|tojson }};
|
||||
</script>
|
||||
|
||||
<div class="h-screen flex flex-col overflow-hidden"
|
||||
@@ -173,13 +172,6 @@
|
||||
────────────────────────────────────────────── #}
|
||||
<div class="flex-1 flex flex-col overflow-hidden bg-[var(--bg-secondary)]">
|
||||
|
||||
{# Recipe image strip (small, top, optional) #}
|
||||
<div x-show="recipeImagePath" class="shrink-0 bg-[var(--bg-card)] border-b border-[var(--border-color)] px-2 py-1 flex items-center justify-center">
|
||||
<img :src="'/measure/api/files/' + recipeImagePath"
|
||||
alt="{{ _('Immagine ricetta') }}"
|
||||
class="max-h-20 object-contain rounded">
|
||||
</div>
|
||||
|
||||
{# Main image area #}
|
||||
<div class="flex-1 overflow-hidden relative">
|
||||
|
||||
@@ -490,8 +482,6 @@ function taskExecute() {
|
||||
subtasks: window.__taskSubtasks,
|
||||
lotNumber: '{{ lot_number or '' }}',
|
||||
serialNumber: '{{ serial_number or '' }}',
|
||||
recipeImagePath: window.__recipeImagePath || '',
|
||||
|
||||
// ---- Measurement state ----
|
||||
currentIndex: 0,
|
||||
measurements: [], // [{subtask_id, value, pass_fail, deviation}, ...]
|
||||
|
||||
Reference in New Issue
Block a user