Merge pull request #12582 from akemidx/bug/sc-20065/license-export-does-not-show-info-of-boolean

This commit is contained in:
snipe 2023-02-28 15:13:04 -08:00 committed by GitHub
commit 5194711a6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -403,6 +403,8 @@ return [
'toggle_navigation' => 'Toggle navigation',
'alerts' => 'Alerts',
'tasks_view_all' => 'View all tasks',
'true' => 'True',
'false' => 'False',

View file

@ -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>';
}
}