Skip to content

A free open source IT asset/license management system

Merge branch 'snipe-develop' into added-localized-strings

Wächtler, Yannick29015251945f
diff --cc resources/views/reports/custom.blade.php
index 75070a75bb,697c975f01..f0b91c1c83
--- a/resources/views/reports/custom.blade.php
+++ b/resources/views/reports/custom.blade.php
@@@ -243,12 -243,9 +243,9 @@@
</div>
-
-
-
@if ($customfields->count() > 0)
<div class="checkbox col-md-12">
- <h2>Custom Fields:</h4>
+ <h2>{{ trans('admin/custom_fields/general.custom_fields') }}</h>:</h4>
</div>
@foreach ($customfields as $customfield)
<div class="checkbox col-md-12">
diff --cc resources/views/settings/slack.blade.php
index 6cb1070bae,9f3a3a039f..0d075f10f8
--- a/resources/views/settings/slack.blade.php
+++ b/resources/views/settings/slack.blade.php
@@@ -165,8 -164,17 +164,17 @@@
$("#slacktestrow").removeClass('text-danger');
$("#slackteststatus").removeClass('text-danger');
$("#slackteststatus").html('');
- $("#slacktesticon").html('<i class="fas fa-spinner spin"></i> Sending Slack test message...');
+ $("#slacktesticon").html('<i class="fas fa-spinner spin"></i> {{ trans('admin/settings/message.slack.sending') }}');
$.ajax({
+
+ // If I comment this back in, I always get a success (200) message
+ // Without it, I get
+ // beforeSend: function (xhr) {
+ // xhr.setRequestHeader("Content-Type","application/json");
+ // xhr.setRequestHeader("Accept","text/json");
+ // },
+
+
url: '{{ route('api.settings.slacktest') }}',
type: 'POST',
headers: {