Compare commits
3 Commits
main
...
change-lim
Author | SHA1 | Date | |
---|---|---|---|
b312f9b764 | |||
691491a0b0 | |||
3435a45952 |
@ -297,8 +297,8 @@
|
|||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
class="inline-flex justify-center py-2 px-4 text-sm font-medium text-white bg-blumilk-600 rounded-md border border-transparent focus:outline-none focus:ring-2 focus:ring-blumilk-500 focus:ring-offset-2 shadow-sm"
|
class="inline-flex justify-center py-2 px-4 text-sm font-medium text-white bg-blumilk-600 rounded-md border border-transparent focus:outline-none focus:ring-2 focus:ring-blumilk-500 focus:ring-offset-2 shadow-sm"
|
||||||
:class="[form.processing || !isDirty ? 'disabled:opacity-60' : 'hover:bg-blumilk-700']"
|
:class="[form.processing || !form.isDirty ? 'disabled:opacity-60' : 'hover:bg-blumilk-700']"
|
||||||
:disabled="form.processing || !isDirty"
|
:disabled="form.processing || !form.isDirty"
|
||||||
>
|
>
|
||||||
Zapisz
|
Zapisz
|
||||||
</button>
|
</button>
|
||||||
@ -359,13 +359,6 @@ const form = useForm({
|
|||||||
flowSkipped: false,
|
flowSkipped: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
let isDirty = ref(false)
|
|
||||||
|
|
||||||
watch(form, formData => {
|
|
||||||
const { from, to } = formData.data()
|
|
||||||
isDirty.value = formData.isDirty || from !== null || to !== null
|
|
||||||
}, { immediate: true, deep: true })
|
|
||||||
|
|
||||||
refreshEstimatedDays(form.from, form.to)
|
refreshEstimatedDays(form.from, form.to)
|
||||||
|
|
||||||
const estimatedDays = ref([])
|
const estimatedDays = ref([])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user