Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/Http/Transformers/StatuslabelsTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function transformStatuslabel(Statuslabel $statuslabel)
{
$array = [
'id' => (int) $statuslabel->id,
'reorder_icon' => '<i class="fas fa-ellipsis-v"></i>',
'name' => e($statuslabel->name),
'type' => $statuslabel->getStatuslabelType(),
'color' => ($statuslabel->color) ? e($statuslabel->color) : null,
Expand Down
8 changes: 8 additions & 0 deletions app/Presenters/StatusLabelPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ public static function dataTableLayout()
'switchable' => true,
'title' => trans('general.id'),
'visible' => false,
],
[
'field' => 'reorder_icon',
'searchable' => false,
'sortable' => false,
'switchable' => false,
'title' => trans('admin/custom_fields/general.reorder'),
'visible' => true,
], [
'field' => 'name',
'searchable' => true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('status_labels', function (Blueprint $table) {
$table->tinyInteger('display_order')->nullable()->default(0);
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('status_labels', function (Blueprint $table) {
$table->dropColumn('display_order');
});
}
};
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"select2": "4.0.13",
"sheetjs": "^2.0.0",
"signature_pad": "^4.2.0",
"tablednd": "^1.0.5",
"tableexport.jquery.plugin": "1.30.0",
"tether": "^1.4.0",
"webpack": "^5.94.0"
Expand Down
2 changes: 2 additions & 0 deletions public/css/dist/bootstrap-table.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading