A free open source IT asset/license management system
fixed merge conflicts
Wächtler, Yannick484b996879ff
diff --cc resources/views/settings/slack.blade.phpindex f8a85f0720,7b754e77ec..6cb1070bae--- a/resources/views/settings/slack.blade.php+++ b/resources/views/settings/slack.blade.php@@@ -205,15 -206,20 +207,21 @@@$('#save_slack').attr("disabled", true);$("#slacktesticon").html('');$("#slackteststatus").addClass('text-danger');- $("#slacktesticon").html('<i class="fas fa-exclamation-triangle text-danger"></i>');+ $("#slacktesticon").html('<i class="fas fa-exclamation-triangle text-danger"></i><span class="text-danger">' + error_msg+ '</span>');+if (data.status == 500) {- $('#slackteststatus').html('500 Server Error');+ $('#slackteststatus').html('{{ trans('admin/settings/message.slack.500') }}');- } else if (data.status == 400) {+ } else if ((data.status == 400) || (data.status == 422)) {++ // TODO: Needs translation+ console.log('Type of errors is '+ typeof errors);+ console.log('Data status was 400 or 422');if (typeof errors != 'string') {++ console.log(errors.length);- for (i = 0; i < errors.length; i++) {+ for (i in errors) {if (errors[i]) {error_text += '<li>Error: ' + errors[i];}