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

Fixed: Modal will display Other as group type for unlinked facility groups(#258) #329

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

R-Sourabh
Copy link
Contributor

Related Issues

#258

Short Description and Why It's Useful

  • Previously, the group type in the modal was shown as 'null' for facility groups not linked to any specific type.
  • This has been changed to 'Others' in the modal for groups with a null facilityGroupTypeId.

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

Contribution and Currently Important Rules Acceptance

@@ -16,7 +16,7 @@
<form @keyup.enter="updateGroups">
<ion-list>
<ion-item-group v-for="(groups, typeId) in filteredFacilityGroupsByType" :key="typeId">
<ion-item-divider color="medium">{{ getFacilityGroupTypeDesc(typeId) }}</ion-item-divider>
<ion-item-divider color="medium">{{ typeId === "null" ? translate('Others') : getFacilityGroupTypeDesc(typeId) }}</ion-item-divider>
Copy link
Contributor

@ravilodhi ravilodhi Nov 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use !typeId instead of typeId === 'null' ?

@ravilodhi ravilodhi merged commit 5fff35e into hotwax:main Nov 7, 2024
2 checks 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.

2 participants