Bulk Invitations need a confirmation dialog

Hi,
I have created PR for the same. But i had to make some modifications to the confirmation popup.

https://github.com/discourse/discourse/pull/6761

Currently, CSV is processed fully in back-end so it will need some front-end processing to get number of rows in file. That’s why I have just added a generic popup Are you sure? instead. I think it should be fine since our purpose is more of giving a confirmation dialog to user before proceeding.

If we want to check after file is uploaded and before invites are not sent, it will require a major cleanup on front-end and back-end. Front-end uses a mix-in for upload which is used at multiple places so modifying it can create a big issue. Back-end is also coupled to do processing of CSV and sending invites in one go.

1 лайк