Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save button updated #236

Merged
merged 3 commits into from
Nov 14, 2023
Merged

Save button updated #236

merged 3 commits into from
Nov 14, 2023

Conversation

Killer2OP
Copy link
Contributor

@Killer2OP Killer2OP commented Oct 13, 2023

Related Issues

Closes #234

Short Description and Why It's Useful

In this modification, the :disabled attribute is bound to the expression !Object.keys(itemsByFacilityId).length. When itemsByFacilityId is an empty object (no facilities), the expression evaluates to true, disabling the button. When there are facilities in the itemsByFacilityId object (at least one key), the expression evaluates to false, enabling the button.

Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to add changelog entry

Contribution and Currently Important Rules Acceptance

@Killer2OP
Copy link
Contributor Author

@k2maan Review please..

@Killer2OP Killer2OP requested a review from alsoK2maan October 13, 2023 08:37
@ymaheshwari1 ymaheshwari1 merged commit 65f3b35 into hotwax:main Nov 14, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable button in the missing facility modal until there is nothing to update
3 participants