[PM-39704] fix(send): restore increment/decrement buttons for max access count#21527
[PM-39704] fix(send): restore increment/decrement buttons for max access count#21527harikrishna2208 wants to merge 1 commit into
Conversation
|
Thank you for your contribution! We've added this to our internal tracking system for review. Details on our contribution process can be found here: https://contributing.bitwarden.com/contributing/pull-requests/community-pr-process. |
|
Hi @harikrishna2208 and thanks for your contribution! The first step in our Community Contribution Review Process is review by our internal product team. This will ensure that the functionality you propose to restore wasn't removed intentionally. If everything checks out, myself or someone on my team will perform an engineering review. Thanks again for your contribution, and please feel free to tag me here if you would an update throughout the process. |
|
Thanks @pamperer562580892423 for the context and the screenshots! I went with bwi-minus-circle / bwi-plus-circle since those are the icon variants available in the shared icon font used by this component. Happy to update the design to match whichever style the product/design team prefers once they complete their review. |



Tracking
Fixes #21504
📔 Objective
The rewritten Send UI was missing the +/- increment/decrement buttons on
the "Maximum access count" input that existed in the previous Send UI.
Changes:
⊖/⊕icon buttons (bwi-minus-circle/bwi-plus-circle)as suffix controls on the max access count input
incrementMaxAccessCount()anddecrementMaxAccessCount()methods;decrement floors at 1 to match
Validators.min(1)type="text" inputmode="numeric"instead oftype="number"toavoid the browser-native spinner conflicting with the custom buttons
@if (editing())into two blocks to fix Angular NG8011 contentprojection warnings
📷 Screenshots
✅ Testing
npm run lint:fix— 0 errorsnpm run prettier— cleannpm run test:types— all passed