diff --git a/kernel/modules/menu/views/index.php b/kernel/modules/menu/views/index.php index 35db706..0cad83d 100644 --- a/kernel/modules/menu/views/index.php +++ b/kernel/modules/menu/views/index.php @@ -23,6 +23,9 @@ $table->columns([ if ($data == 0) return null; return Menu::find($data)->label; }), + 'icon_file' => function ($data) { + return $data ? "" : ""; + } ]); $table->beforePrint(function () { return IconBtnCreateWidget::create(['url' => '/admin/settings/menu/create'])->run(); diff --git a/kernel/modules/menu/views/view.php b/kernel/modules/menu/views/view.php index 00c404c..ecd3104 100644 --- a/kernel/modules/menu/views/view.php +++ b/kernel/modules/menu/views/view.php @@ -26,7 +26,10 @@ $table->rows([ 'parent_id' => (function ($data) { if ($data == 0) return null; return Menu::find($data)->label; - }) + }), + 'icon_file' => function ($data) { + return $data ? "" : ""; + } ]); $table->create(); $table->render(); \ No newline at end of file