Skip to content

Commit

Permalink
Reworked joint message support on frontend
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Hu <[email protected]>
  • Loading branch information
charleshu-8 committed Jul 29, 2024
1 parent 47ec2a0 commit 33cfbee
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,13 @@ export default class ControlRowCol extends mixins(HtmlSanitizeMixin) {
}
get resultMessage(): string | undefined {
// Check if either `skip_message` or `message` exist
// If one but not the other exists, display the individual message
// Otherwise display both messages in a joint string
return this.result.skip_message
? `-Message-\n${this.result.message}\n-Skip Message-\n${this.result.skip_message}`
? this.result.message
? `-Message-\n${this.result.message}\n\n-Skip Message-\n${this.result.skip_message}`
: this.result.skip_message
: this.result.message;
}
}
Expand Down

0 comments on commit 33cfbee

Please sign in to comment.