We need to handle errors here as well as success. Also, we should disable the button while the indexing process is running.

I am also concerned that changing the state of the cursor and button are not enough indication, particularly for error cases and in light of the generally nice progress and error reporting that course authors are now accustomed to seeing in Studio.