Merge pull request #12674 from snipe/fixes/translation_variable_for_slack

Fixed missing variable in Slack hook test
This commit is contained in:
snipe 2023-03-14 19:03:42 -07:00 committed by GitHub
commit 1968aebf78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ class SlackSettingsForm extends Component
$payload = json_encode( $payload = json_encode(
[ [
'channel' => e($this->webhook_channel), 'channel' => e($this->webhook_channel),
'text' => trans('general.webhook_test_msg'), 'text' => trans('general.webhook_test_msg', ['app' => $this->webhook_name]),
'username' => e($this->webhook_botname), 'username' => e($this->webhook_botname),
'icon_emoji' => ':heart:', 'icon_emoji' => ':heart:',
]); ]);