This commit is contained in:
EwelinaLasowy 2022-05-17 15:05:28 +02:00
parent 35247cbabe
commit 4162dd3d67
7 changed files with 9 additions and 10 deletions

View File

@ -66,7 +66,6 @@ class VacationRequestsSummaryNotification extends Notification
); );
} }
return $message return $message
->action(__("Go to requests"), $url); ->action(__("Go to requests"), $url);
} }

View File

@ -31,7 +31,7 @@ class VacationRequestsAttachment extends ListAttachment
"url" => $url, "url" => $url,
"request" => $request->name, "request" => $request->name,
"user" => $request->user->profile->full_name, "user" => $request->user->profile->full_name,
"date" => $date "date" => $date,
]); ]);
}); });
} }

View File

@ -51,7 +51,7 @@ class GiveKeysTo extends SignatureHandler
$key->notify(new KeyHasBeenGivenNotification($authUser, $user)); $key->notify(new KeyHasBeenGivenNotification($authUser, $user));
return $this->respondToSlack( return $this->respondToSlack(
__(":white_check_mark: Key no. :key has been given to <@:user>", ["key"=>$key->id, "user" => $user->profile->slack_id]) __(":white_check_mark: Key no. :key has been given to <@:user>", ["key" => $key->id, "user" => $user->profile->slack_id]),
); );
} }

View File

@ -35,7 +35,7 @@ class TakeKeysFrom extends SignatureHandler
if (!$key) { if (!$key) {
throw ValidationException::withMessages([ throw ValidationException::withMessages([
"key" => __("User <@:user> does not have any keys", ["user" => $user->profile->slack_id]) "key" => __("User <@:user> does not have any keys", ["user" => $user->profile->slack_id]),
]); ]);
} }
@ -64,7 +64,7 @@ class TakeKeysFrom extends SignatureHandler
protected function getMessages(): array protected function getMessages(): array
{ {
return [ return [
"user.required" => __("You must specified the user you want to take the keys from") "user.required" => __("You must specified the user you want to take the keys from"),
]; ];
} }
} }