diff --git a/frontend/src/views/DiaryView.vue b/frontend/src/views/DiaryView.vue index 896dcb03..065775ef 100644 --- a/frontend/src/views/DiaryView.vue +++ b/frontend/src/views/DiaryView.vue @@ -435,7 +435,12 @@
- {{ getPlanItemDisplayLabel(item) }} + + 🖼️ + {{ getPlanItemDisplayLabel(item) }} + {{ getPlanItemStatus(item).label }} @@ -468,7 +473,12 @@
- {{ getPlanItemDisplayLabel(item) }} + + 🖼️ + {{ getPlanItemDisplayLabel(item) }} + {{ getPlanItemStatus(item).label }} @@ -1473,9 +1483,31 @@ export default { } // Prüfe auch über predefinedActivity if (item.predefinedActivity && this.hasActivityVisual(item.predefinedActivity)) return true; + if (item.groupPredefinedActivity && this.hasActivityVisual(item.groupPredefinedActivity)) return true; } catch (e) { } return false; }, + getPlanItemVisualSource(item) { + if (!item) return null; + if (item.predefinedActivity) return item.predefinedActivity; + if (item.groupPredefinedActivity) return item.groupPredefinedActivity; + if (!this.hasItemDrawingData(item)) return null; + return { + name: item.activity || '', + code: item.activity || '', + drawingData: item.drawingData || null, + renderCode: item.renderCode || '', + renderSpec: item.renderSpec || null, + imageLink: item.imageLink || '', + images: Array.isArray(item.images) ? item.images : [] + }; + }, + async openPlanItemVisual(item) { + const source = this.getPlanItemVisualSource(item); + if (source) { + await this.openActivityVisual(source); + } + }, hasActivityVisual(pa) { if (!pa) return false;