Skip to content

Commit

Permalink
IncidentListItem: Translate text in meta
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 committed May 3, 2024
1 parent a76399f commit 3567726
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/Notifications/Widget/ItemList/IncidentListItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use ipl\Html\BaseHtmlElement;
use ipl\Html\Html;
use ipl\Html\HtmlElement;
use ipl\I18n\Translation;
use ipl\Web\Common\BaseListItem;
use ipl\Web\Widget\Icon;
use ipl\Web\Widget\Link;
Expand All @@ -25,6 +26,8 @@
*/
class IncidentListItem extends BaseListItem
{
use Translation;

/** @var Incident The associated list item */
protected $item;

Expand Down Expand Up @@ -85,7 +88,7 @@ protected function assembleHeader(BaseHtmlElement $header): void

if ($this->item->recovered_at !== null) {
$meta->add([
'closed ',
$this->translate('closed') . ' ',
new TimeAgo($this->item->recovered_at->getTimestamp())
]);
} else {
Expand Down

0 comments on commit 3567726

Please sign in to comment.