-
Notifications
You must be signed in to change notification settings - Fork 364
Limit selection of translations: User should not be able select more than xx translations #718
Comments
Hi @naveed-ahmad, I would love to handle this issue. Any hints on where I could start would be appreciated. |
Salam @azeezolaniran2016 thanks, feel free to take this :) We currently have 60 translations, we might have more in future. For now user can select all translations, which don't make any sense plus api call with 60 translations will put huge load on server. One simple solution is to simply disable the translation checkboxes when user select 10 translations, if user de-select one then we enable all checkboxes again. Basically user shouldn't be able to select more than 10 translation. Let me know if you've any question. |
Thank you @naveed-ahmad. |
Salam @naveed-ahmad. I have gone through this and I've decided to keep a count of how many items are checked and decide which checkboxes to enable or disable based of the checked count. I have also discovered that the custom CheckBox component does not expose the 'disable' property. Is there a work around for this/ what do you suggest ? |
Oh, interesting. This has lead me to discover https://github.com/quran/common-components. |
@azeezolaniran2016 Update quran-component to |
Thanks @naveed-ahmad :) |
Maybe max 10 translations.
The text was updated successfully, but these errors were encountered: