fix module install, add filters to msc, fix primary btn

This commit is contained in:
2024-12-19 12:59:27 +03:00
parent 1cf2dc3d86
commit a71102eb05
5 changed files with 66 additions and 6 deletions

View File

@ -17,6 +17,7 @@ $meta['columns'] = [
"name" => "Название",
"author" => "Автор",
"version" => "Версия",
"type" => "Тип",
"description" => "Описание",
"installations" => "Установки",
"views" => "Просмотры"
@ -29,6 +30,7 @@ $meta['total'] = $module_count;
$info_to_table['meta'] = $meta;
$info_to_table['data'] = $modules_info;
$info_to_table['filters'] = ['type'/*, 'author'*/];
$table = new ListJsonTable(json_encode($info_to_table, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
@ -95,6 +97,10 @@ $table->addAction(function ($row, $url) use ($adminThemeService) {
return false;
});
$table->afterPrint(function () {
return \kernel\IGTabel\btn\PrimaryBtn::create('Сбросить все фильтры', '/admin/module_shop_client')->fetch();
});
\kernel\widgets\ModuleTabsWidget::create()->run();
$table->create();