Skip to content

A free open source IT asset/license management system

Removed duplicate formatter

snipe5eb73baf5e89
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 '<span class="label" style="background-color: ' + value + ';">&nbsp;</span> ' + 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')
<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)) {