rusackas commented on code in PR #22772:
URL: https://github.com/apache/superset/pull/22772#discussion_r1086919521
##########
superset-frontend/src/views/CRUD/alert/ExecutionLog.tsx:
##########
@@ -165,7 +165,14 @@ function ExecutionLog({ addDangerToast, isReportEnabled }:
ExecutionLogProps) {
name={
<StyledHeader>
<span>
- {alertResource?.type} {alertResource?.name}
+ {alertResource
+ ? alertResource.type === 'Alert'
+ ? t('Alert:')
+ : alertResource.type === 'Report'
+ ? t('Report:')
Review Comment:
No strong feeling here, but I wonder if we might leverage existing
translations by doing this as
```suggestion
? alertResource.type === 'Alert'
? `${t('Alert')}:`
: alertResource.type === 'Report'
? `${t('Report:')}:`
```
¯\\\_(ツ)_/¯
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]