mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #33332 from nextcloud/fix-handling-of-internal-errors-when-uploading-theming-files
Fix handling of internal errors when uploading theming files
This commit is contained in:
commit
199d9e5804
1 changed files with 2 additions and 1 deletions
|
|
@ -128,7 +128,8 @@ window.addEventListener('DOMContentLoaded', function () {
|
|||
},
|
||||
fail: function (e, response){
|
||||
var $form = $(e.target).closest('form');
|
||||
OC.msg.finishedError('#theming_settings_msg', response._response.jqXHR.responseJSON.data.message);
|
||||
const responseJSON = response._response.jqXHR.responseJSON;
|
||||
OC.msg.finishedError('#theming_settings_msg', responseJSON && responseJSON.data && responseJSON.data.message ? responseJSON.data.message : t('theming', 'Error uploading the file'));
|
||||
$form.find('label.button').addClass('icon-upload').removeClass('icon-loading-small');
|
||||
$('#theming_settings_loading').hide();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue