Fixed the tables not displaying the correct language

This commit is contained in:
Wächtler, Yannick 2022-01-06 14:29:10 +01:00
parent 04d649122b
commit c3ab4c7512

View file

@ -6,10 +6,11 @@
@push('js')
<script src="{{ url(mix('js/dist/bootstrap-table.js')) }}"></script>
<script src="{{ url('js/bootstrap-table-locale-all.js') }}"></script>
<script nonce="{{ csrf_token() }}">
$(function () {
var locale = '{{ config('app.locale') }}';
var stickyHeaderOffsetY = 0;
@ -39,6 +40,7 @@
}
},
stickyHeader: true,
locale: locale,
stickyHeaderOffsetY: stickyHeaderOffsetY + 'px',
undefinedText: '',
iconsPrefix: 'fa',
@ -90,9 +92,6 @@
});
function dateRowCheckStyle(value) {
if ((value.days_to_next_audit) && (value.days_to_next_audit < {{ $snipeSettings->audit_warning_days ?: 0 }})) {
return { classes : "danger" }