- hide chart when user has no vacation limit

This commit is contained in:
EwelinaLasowy 2022-05-06 10:17:32 +02:00
parent 8807d95dee
commit 4d5a61826a

View File

@ -1,6 +1,6 @@
<template> <template>
<InertiaHead title="Złóż wniosek" /> <InertiaHead title="Złóż wniosek" />
<div class="grid grid-cols-1 gap-4 items-start xl:grid-cols-3 xl:gap-8"> <div :class="[stats.limit > 0 ? ' grid grid-cols-1 gap-4 items-start xl:grid-cols-3 xl:gap-8' : 'mx-auto w-full max-w-7xl']">
<div class="flex flex-col h-full bg-white shadow-md xl:col-span-2"> <div class="flex flex-col h-full bg-white shadow-md xl:col-span-2">
<div class="p-4 sm:px-6"> <div class="p-4 sm:px-6">
<h2 class="text-lg font-medium leading-6 text-gray-900"> <h2 class="text-lg font-medium leading-6 text-gray-900">
@ -306,7 +306,7 @@
</div> </div>
</form> </form>
</div> </div>
<div class="h-full bg-white shadow-md"> <div class="h-full bg-white shadow-md" v-if="stats.limit > 0 ">
<div class="p-4 sm:px-6"> <div class="p-4 sm:px-6">
<h2 class="text-lg font-medium leading-6 text-gray-900"> <h2 class="text-lg font-medium leading-6 text-gray-900">
<span v-if="auth.user.id !== form.user.id"> <span v-if="auth.user.id !== form.user.id">