Skip to content

Commit

Permalink
🌐 improve title of external status tags (#2132)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKrisKrisu authored Nov 13, 2023
1 parent 99306c5 commit 0a2416b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/Enum/StatusTagKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ public function faIcon(): ?string {
}

public function title(): ?string {
return __('tag.title.' . $this->value);
$title = __('tag.title.' . $this->value);
if (str_starts_with($title, 'tag.title.')) {
return 'Tag: ' . $this->value;
}
return $title;
}

public function description(): ?string {
Expand Down

0 comments on commit 0a2416b

Please sign in to comment.