Open Pratap2018 opened 2 years ago
@harshitha-kondadasu
Click directly on the Execute
button without selecting number of winners
, the validation message displays but the loader keeps spinning.
@lovelybhushan13 Sure I'll fix this loader issue and push the code
@lovelybhushan13 this is fixed, please do check
As an admin, I should be able to perform a lottery based on the event data .
Lottery is the process of selecting winners of an event. Upon clicking on "Execute button", the lottery process begins, which may take sometime and screen may freeze. Once done, you will get selected records in excel sheet. The winner selection is primarily based on their "score" unless checked "randomly".
the number of the participants on the selected event
default placeholder 0
this should be input type Number.unchecked
For Reference :
Note: The Pop-up design needs to be adopted based on the solawind theme.
Api end point for the lottery data:
https://api.fyre.hypersign.id/api/v1/project/${eventId}/lottery?token=${authToken}&limitRecord=2&isRandom=false
Ref : The following two code snippets is reference for the export the participant data and lottery data
Handle Lottery https://github.com/hypersign-protocol/hyperfyre-frontend/blob/d7ce32c66f190e1a439d2df25a75476850748021/src/views/admin/Participants.vue#L467 Handle Export https://github.com/hypersign-protocol/hyperfyre-frontend/blob/d7ce32c66f190e1a439d2df25a75476850748021/src/views/admin/Participants.vue#L441 Response : (Raw Text)