From f0355f56d338f05c95a7362e71071dc9da770a08 Mon Sep 17 00:00:00 2001 From: Adrian Hopek Date: Mon, 7 Mar 2022 15:13:37 +0100 Subject: [PATCH] #62 - fix --- .../Resources/VacationRequestResource.php | 4 +- resources/js/Pages/Dashboard.vue | 10 ++-- .../VacationRequest/IndexForApprovers.vue | 2 +- resources/js/Pages/VacationRequest/Show.vue | 46 ++++++++++--------- 4 files changed, 33 insertions(+), 29 deletions(-) diff --git a/app/Infrastructure/Http/Resources/VacationRequestResource.php b/app/Infrastructure/Http/Resources/VacationRequestResource.php index 112d7a0..e5caa51 100644 --- a/app/Infrastructure/Http/Resources/VacationRequestResource.php +++ b/app/Infrastructure/Http/Resources/VacationRequestResource.php @@ -18,8 +18,8 @@ class VacationRequestResource extends JsonResource "user" => new UserResource($this->user), "type" => $this->type->label(), "state" => $this->state, - "from" => $this->from->toDisplayString(), - "to" => $this->to->toDisplayString(), + "from" => $this->from->toDisplayDate(), + "to" => $this->to->toDisplayDate(), "comment" => $this->comment, "days" => VacationResource::collection($this->vacations), ]; diff --git a/resources/js/Pages/Dashboard.vue b/resources/js/Pages/Dashboard.vue index 62e0745..caced10 100644 --- a/resources/js/Pages/Dashboard.vue +++ b/resources/js/Pages/Dashboard.vue @@ -112,7 +112,7 @@ :key="request.id" class="py-5" > -
+

Zobacz wszystkie @@ -178,7 +178,7 @@ :key="request.id" class="py-5" > -
+

Zobacz wszystkie @@ -284,7 +284,7 @@
Zobacz wszystkie diff --git a/resources/js/Pages/VacationRequest/IndexForApprovers.vue b/resources/js/Pages/VacationRequest/IndexForApprovers.vue index 3294528..33a4733 100644 --- a/resources/js/Pages/VacationRequest/IndexForApprovers.vue +++ b/resources/js/Pages/VacationRequest/IndexForApprovers.vue @@ -231,7 +231,7 @@ -
+
-
+
Pracownik
- {{ request.user.name }} +
+ +
+

+ {{ request.user.name }} +

+

+ {{ request.user.email }} +

+
+
@@ -44,26 +57,17 @@
- Urlop od + Data
- {{ request.from }} -
-
-
-
- Urlop do -
-
- {{ request.to }} -
-
-
-
- Dni urlopu -
-
- {{ request.days.length }} + + + +
@@ -84,7 +88,7 @@
-
+
Załączniki