feat(notification::microsoft::office365::teams): Mode(alert) - Allow to wrap long text (#5739)

Refs: CTOR-1905
This commit is contained in:
itoussies 2025-09-10 10:11:06 +02:00 committed by GitHub
parent ddbf4b6bb5
commit 3f2d2a22af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -363,7 +363,8 @@ sub build_workflow_message {
"size" => "Large", "size" => "Large",
"weight" => "Bolder", "weight" => "Bolder",
"style" => "heading", "style" => "heading",
"color" => $themecolor "color" => $themecolor,
"wrap" => "true"
}; };
push @{$self->{body}}, { push @{$self->{body}}, {
type => "TextBlock", type => "TextBlock",
@ -371,7 +372,8 @@ sub build_workflow_message {
"size" => "Medium", "size" => "Medium",
"weight" => "Bolder", "weight" => "Bolder",
"style" => "heading", "style" => "heading",
"color" => $themecolor "color" => $themecolor,
"wrap" => "true"
}; };
if (defined($self->{option_results}->{$resource_type . '_output'}) && $self->{option_results}->{$resource_type . '_output'} ne '') { if (defined($self->{option_results}->{$resource_type . '_output'}) && $self->{option_results}->{$resource_type . '_output'} ne '') {
@ -392,9 +394,9 @@ sub build_workflow_message {
if (defined($self->{option_results}->{extra_info}) && $self->{option_results}->{extra_info} !~ m/^\/\/$/) { if (defined($self->{option_results}->{extra_info}) && $self->{option_results}->{extra_info} !~ m/^\/\/$/) {
if ($self->{option_results}->{extra_info} =~ m/^(.*)\/\/(.*)$/) { if ($self->{option_results}->{extra_info} =~ m/^(.*)\/\/(.*)$/) {
push @{$self->{body}}, { push @{$self->{body}}, {
type => "TextBlock", type => "TextBlock",
text => "Additional Information: \n" . sprintf($self->{option_results}->{extra_info_format}, $1, $2), text => "Additional Information: \n" . sprintf($self->{option_results}->{extra_info_format}, $1, $2),
wrap => "true" wrap => "true"
}; };
} }
} }