* #153 - behaviour of buttons has been changed * #153 - changed the gray background to opacity Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl> * #153 - added for created forms * #153 - default value for downloaded types is set * #153 - removed hover for disabled buttons Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>
This commit is contained in:
		| @@ -296,8 +296,9 @@ | ||||
|               </InertiaLink> | ||||
|               <button | ||||
|                 type="submit" | ||||
|                 :disabled="form.processing" | ||||
|                 class="inline-flex justify-center py-2 px-4 text-sm font-medium text-white bg-blumilk-600 hover:bg-blumilk-700 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 || !form.isDirty ? 'disabled:opacity-60' : 'hover:bg-blumilk-700']" | ||||
|                 :disabled="form.processing || !form.isDirty" | ||||
|               > | ||||
|                 Zapisz | ||||
|               </button> | ||||
| @@ -465,6 +466,7 @@ async function refreshAvailableTypes(user) { | ||||
|  | ||||
|   vacationTypes.value = res.data | ||||
|   form.vacationType = vacationTypes.value[0] | ||||
|   form.defaults('vacationType', vacationTypes.value[0]) | ||||
| } | ||||
|  | ||||
| </script> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user