Skip to content

Commit

Permalink
improved caption of CommandComments
Browse files Browse the repository at this point in the history
  • Loading branch information
z1glr committed Feb 25, 2024
1 parent 233944d commit e2fc32f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/server/SequenceItems/CommandComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ClientItemSlides> {
Expand Down

0 comments on commit e2fc32f

Please sign in to comment.