Clean up error handling in project permissions page
Currently if there is an error in the form submitted by the project permissions panel, it returns an XHR response with a bunch of jQuery which is meant to:
- diaplay an error message
- unhide the form
- re-enable the save button
This is all based on an old implementation of the form (before we re-implemented it in Vue), so these commands effectively do nothing and the user is left confused as to why the form didn't submit.
$(".project-edit-errors").html("<div class=\"alert alert-danger\" id=\"error_explanation\"><h4>The form contains the following error:<\/h4><ul><li>Visibility level internal is not allowed since the fork source project has lower visibility.<\/li><\/ul><\/div>\n");
$('.save-project-loader').hide();
$('.project-edit-container').show();
$('.edit-project .btn-save').enable();
Edited by Mike Greiling