Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Baakoma committed Oct 21, 2024
1 parent 1a19260 commit 5e6b3c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
10 changes: 3 additions & 7 deletions resources/js/Pages/AssignedBenefits/AssignedBenefits.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<script setup>
import { useMonthInfo } from '@/Composables/monthInfo.js'
import { Dialog, DialogOverlay, DialogTitle, TransitionChild, TransitionRoot } from '@headlessui/vue'
import TextArea from '@/Shared/Forms/TextArea.vue'
import { computed, ref, watch } from 'vue'
import { ref, watch } from 'vue'
import { useForm } from '@inertiajs/inertia-vue3'
import { debounce } from 'lodash'
import UserProfileLink from '@/Shared/UserProfileLink.vue'
Expand All @@ -20,9 +19,6 @@ const props = defineProps({
const currentDate = DateTime.now()
const creatingBenefitsReport = ref(false)
const months = useMonthInfo().getMonths()
const currentMonth = computed(() => months[currentDate.month - 1]?.name)
const form = useForm({
items: props.users.data.map((user) => {
Expand Down Expand Up @@ -73,7 +69,7 @@ function submitAssignedBenefits() {
}
function startCreatingBenefitsReport() {
formBenefitsReport.name = `${currentMonth.value.name} ${currentDate.year}`
formBenefitsReport.name = currentDate.toLocaleString({ month: 'long', year: 'numeric' })
creatingBenefitsReport.value = true
}
Expand Down Expand Up @@ -129,7 +125,7 @@ function isBenefitHasCompanion(benefitId) {
rowspan="2"
>
<div class="flex justify-center items-center">
{{ currentMonth }} {{ currentDate.year }}
{{ currentDate.toLocaleString({ month: 'long', year: 'numeric' }) }}
</div>
</th>
<th
Expand Down
3 changes: 0 additions & 3 deletions resources/js/Pages/Equipment/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ function createEquipmentItem() {
>
<ListboxLabel class="block text-sm font-medium text-gray-700">
Przydzielona osoba
<span class="text-xs text-gray-500">
(opcjonalna)
</span>
</ListboxLabel>
<div class="relative mt-1 sm:col-span-2 sm:mt-0">
<ListboxButton
Expand Down
3 changes: 0 additions & 3 deletions resources/js/Pages/Equipment/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ function editEquipmentItem() {
>
<ListboxLabel class="block text-sm font-medium text-gray-700">
Przydzielona osoba
<span class="text-xs text-gray-500">
(opcjonalna)
</span>
</ListboxLabel>
<div class="relative mt-1 sm:col-span-2 sm:mt-0">
<ListboxButton
Expand Down

0 comments on commit 5e6b3c5

Please sign in to comment.