Removed duplicate formatter

This commit is contained in:
snipe
2025-11-18 12:54:21 +00:00
parent a97c453706
commit 5eb73baf5e
3 changed files with 3 additions and 12 deletions

View File

@@ -51,7 +51,7 @@ class StatusLabelPresenter extends Presenter
'switchable' => true,
'title' => trans('admin/statuslabels/table.color'),
'visible' => true,
'formatter' => 'colorSqFormatter',
'formatter' => 'colorTagFormatter',
], [
'field' => 'show_in_nav',
'searchable' => false,

View File

@@ -999,12 +999,7 @@
}
};
}
function colorSqFormatter(value, row) {
if (value) {
return '<span class="label" style="background-color: ' + value + ';">&nbsp;</span> ' + value;
}
}
function colorTagFormatter(value, row) {
if (value) {

View File

@@ -77,11 +77,7 @@
@include ('partials.bootstrap-table')
<script nonce="{{ csrf_token() }}">
function colorSqFormatter(value, row) {
if (value) {
return '<i class="fa-solid fa-square" style="color: ' + value + ';" aria-hidden="true"></i> ' + value;
}
}
function statuslabelsAssetLinkFormatter(value, row) {
if ((row) && (row.name)) {