#152 - holidays are set to on by default
This commit is contained in:
		| @@ -6,7 +6,10 @@ | ||||
|       </h2> | ||||
|     </div> | ||||
|     <div class="px-4 border-t border-gray-200 sm:px-6"> | ||||
|       <ul class="divide-y divide-gray-200"> | ||||
|       <ul | ||||
|         v-if="absences.length" | ||||
|         class="divide-y divide-gray-200" | ||||
|       > | ||||
|         <li | ||||
|           v-for="absence in absences" | ||||
|           :key="absence.user.id" | ||||
| @@ -26,11 +29,25 @@ | ||||
|           </div> | ||||
|         </li> | ||||
|       </ul> | ||||
|       <EmptyState | ||||
|         v-else | ||||
|         :show-description="false" | ||||
|       > | ||||
|         <template #head> | ||||
|           <SunIcon class="mx-auto w-12 h-12" /> | ||||
|         </template> | ||||
|         <template #title> | ||||
|           Brak nieobecności | ||||
|         </template> | ||||
|       </EmptyState> | ||||
|     </div> | ||||
|   </section> | ||||
| </template> | ||||
|  | ||||
| <script setup> | ||||
| import EmptyState from '@/Shared/Feedbacks/EmptyState' | ||||
| import { SunIcon } from '@heroicons/vue/solid' | ||||
|  | ||||
| defineProps({ | ||||
|   absences: Object, | ||||
| }) | ||||
|   | ||||
| @@ -6,7 +6,10 @@ | ||||
|       </h2> | ||||
|     </div> | ||||
|     <div class="px-4 border-t border-gray-200 sm:px-6"> | ||||
|       <ul class="divide-y divide-gray-200"> | ||||
|       <ul | ||||
|         v-if="remoteDays.length" | ||||
|         class="divide-y divide-gray-200" | ||||
|       > | ||||
|         <li | ||||
|           v-for="day in remoteDays" | ||||
|           :key="day.user.id" | ||||
| @@ -26,11 +29,28 @@ | ||||
|           </div> | ||||
|         </li> | ||||
|       </ul> | ||||
|       <EmptyState | ||||
|         v-else | ||||
|         :show-description="false" | ||||
|       > | ||||
|         <template #head> | ||||
|           <HomeCityIcon | ||||
|             class="flex justify-center" | ||||
|             size="48" | ||||
|           /> | ||||
|         </template> | ||||
|         <template #title> | ||||
|           Nikt nie pracuje z domu | ||||
|         </template> | ||||
|       </EmptyState> | ||||
|     </div> | ||||
|   </section> | ||||
| </template> | ||||
|  | ||||
| <script setup> | ||||
| import EmptyState from '@/Shared/Feedbacks/EmptyState' | ||||
| import HomeCityIcon from 'vue-material-design-icons/HomeCity' | ||||
|  | ||||
| defineProps({ | ||||
|   remoteDays: Object, | ||||
| }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user