TUDublin / code-and-docs-rachelrring

code-and-docs-rachelrring created by GitHub Classroom
0 stars 0 forks source link

Budget form validity #25

Closed rachelrring closed 5 months ago

rachelrring commented 5 months ago

Currently, the budget form is valid when all the fields have values. Even if all the values are 0.

This means that a user can save a budget even if all their expenses and income amount to 0.

This should be changed to make it so that a user can only submit their budget if they have entered any values.

rachelrring commented 5 months ago

created bug/budgetFormValidity branch to address this issue.

rachelrring commented 5 months ago

I've decided that a user shouldn't be able to save a budget if every value is 0

Maybe we could get a tooltip or something to explain to the user why the button is disabled.

rachelrring commented 5 months ago

https://material.angular.io/components/tooltip/examples