Removed duplicate formatter
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -999,12 +999,7 @@
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function colorSqFormatter(value, row) {
|
||||
if (value) {
|
||||
return '<span class="label" style="background-color: ' + value + ';"> </span> ' + value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function colorTagFormatter(value, row) {
|
||||
if (value) {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user