Merge pull request #2345 from urbanrotnik/ur-sci-4266-duplicate-spinner

Set spinner to the table [SCI-4266]
This commit is contained in:
Alex Kriuchykhin 2020-01-21 10:43:45 +01:00 committed by GitHub
commit b0432fd10b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,13 +38,13 @@ var RepositoryDatatableRowEditor = (function() {
if (!valid) return false;
animateSpinner($table, true);
// DirectUpload here
let uploadPromise = Asset.uploadFiles($files, directUrl);
// Submission here
uploadPromise
.then(function() {
animateSpinner(null, true);
$form.submit();
return false;
}).catch((reason) => {