From e2fc32f4eaccc46db8a534104a345ad335b4a01e Mon Sep 17 00:00:00 2001 From: Simon Ziegler Date: Sun, 25 Feb 2024 03:59:31 +0100 Subject: [PATCH] improved caption of CommandComments --- src/server/SequenceItems/CommandComment.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/SequenceItems/CommandComment.ts b/src/server/SequenceItems/CommandComment.ts index c9b3c3f..b727dfb 100644 --- a/src/server/SequenceItems/CommandComment.ts +++ b/src/server/SequenceItems/CommandComment.ts @@ -29,6 +29,12 @@ export default class CommandComment extends SequenceItemBase { super(); this.item_props = props; + + this.item_props.Caption = `Template: "${this.props.template.toUpperCase()}"`; + + if (this.props.data) { + this.item_props.Caption += ` (${JSON.stringify(this.props.data, undefined, " ").slice(3, -2)})`; + } } async create_client_object_item_slides(): Promise {