Skip to content

A free open source IT asset/license management system

Adding ability to see boolean values when using normal export

akemidx25f3e4d41ac7
diff --git a/resources/lang/en/general.php b/resources/lang/en/general.php
index cc7ee7fa1c..b73f999229 100644
--- a/resources/lang/en/general.php
+++ b/resources/lang/en/general.php
@@ -403,6 +403,8 @@ return [
'toggle_navigation' => 'Toggle navigation',
'alerts' => 'Alerts',
'tasks_view_all' => 'View all tasks',
+ 'true' => 'True',
+ 'false' => 'False',
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php
index d3a0fddc14..e885f2115c 100644
--- a/resources/views/partials/bootstrap-table.blade.php
+++ b/resources/views/partials/bootstrap-table.blade.php
@@ -570,9 +570,9 @@
function trueFalseFormatter(value) {
if ((value) && ((value == 'true') || (value == '1'))) {
- return '<i class="fas fa-check text-success"></i>';
+ return '<i class="fas fa-check text-success"></i><span class="sr-only">{{ trans('general.true') }}</span>';
} else {
- return '<i class="fas fa-times text-danger"></i>';
+ return '<i class="fas fa-times text-danger"></i><span class="sr-only">{{ trans('general.false') }}</span>';
}
}