From 5eb73baf5e896cbc3e886e8ad341d6bbcfbdf4e2 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 18 Nov 2025 12:54:21 +0000 Subject: [PATCH] Removed duplicate formatter --- app/Presenters/StatusLabelPresenter.php | 2 +- resources/views/partials/bootstrap-table.blade.php | 7 +------ resources/views/statuslabels/index.blade.php | 6 +----- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/app/Presenters/StatusLabelPresenter.php b/app/Presenters/StatusLabelPresenter.php index eac73d67ab..4b53225123 100644 --- a/app/Presenters/StatusLabelPresenter.php +++ b/app/Presenters/StatusLabelPresenter.php @@ -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, diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index d8aab9efd4..d5bee14484 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -999,12 +999,7 @@ } }; } - - function colorSqFormatter(value, row) { - if (value) { - return '  ' + value; - } - } + function colorTagFormatter(value, row) { if (value) { diff --git a/resources/views/statuslabels/index.blade.php b/resources/views/statuslabels/index.blade.php index a06bdb9577..17e7a96599 100755 --- a/resources/views/statuslabels/index.blade.php +++ b/resources/views/statuslabels/index.blade.php @@ -77,11 +77,7 @@ @include ('partials.bootstrap-table')