* #132 - added translations * wip * #132 - added translations * #132 - cs fix * #132 - cs fix Co-authored-by: Adrian Hopek <adrian.hopek@blumilk.pl>
This commit is contained in:
@@ -27,9 +27,10 @@ class VacationRequestCreatedNotification extends Notification
|
||||
public function toSlack(): SlackMessage
|
||||
{
|
||||
$url = route("vacation.requests.show", ["vacationRequest" => $this->vacationRequest->id]);
|
||||
$seeDetails = __("See details");
|
||||
|
||||
return (new SlackMessage())
|
||||
->text("{$this->buildDescription()}\n <${url}|Zobacz szczegóły>");
|
||||
->text("{$this->buildDescription()}\n <${url}|${seeDetails}>");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,8 +98,8 @@ class VacationRequestCreatedNotification extends Notification
|
||||
$name = $this->vacationRequest->name;
|
||||
|
||||
if ($this->vacationRequest->creator()->is($this->vacationRequest->user)) {
|
||||
return __("The vacation request :title from user :user has been created successfully.", [
|
||||
"user" => $this->vacationRequest->user->profile->full_name,
|
||||
return __("The vacation request :title has been created successfully.", [
|
||||
"requester" => $this->vacationRequest->user->profile->full_name,
|
||||
"title" => $name,
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user