Merge pull request #2865 from aignatov-bio/ai-sci-5028-add-error-handling-for-step-delete

Add error handling for MarvinJS [SCI-5028]
This commit is contained in:
aignatov-bio 2020-09-23 13:08:54 +02:00 committed by GitHub
commit 4d97cdedad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -168,6 +168,10 @@ var MarvinJsEditorApi = (function() {
$(marvinJsModal).modal('hide');
FilePreviewModal.init();
config.button.dataset.inProgress = false;
}).error((response) => {
if (response.status === 403) {
HelperModule.flashAlertMsg(I18n.t('general.no_permissions'), 'danger');
}
});
}
@ -196,6 +200,11 @@ var MarvinJsEditorApi = (function() {
}
$(marvinJsModal).modal('hide');
config.button.dataset.inProgress = false;
},
error: function(response) {
if (response.status === 403) {
HelperModule.flashAlertMsg(I18n.t('general.no_permissions'), 'danger');
}
}
});
}

View file

@ -47,7 +47,7 @@
.atwho-no-results {
color: $color-silver-chalice;
padding: 1.5em 7em;
padding: 1.5em 4em;
text-align: center;
.description {