update full
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
* @var \kernel\services\ModuleService $moduleService
|
||||
*/
|
||||
|
||||
use kernel\Flash;
|
||||
use kernel\widgets\IconBtn\IconBtnActivateWidget;
|
||||
use kernel\widgets\IconBtn\IconBtnDeactivateWidget;
|
||||
use kernel\widgets\IconBtn\IconBtnDeleteWidget;
|
||||
@ -32,7 +33,6 @@ $info_to_table['data'] = $modules_info;
|
||||
|
||||
$table = new \Itguild\Tables\ListJsonTable(json_encode($info_to_table, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
|
||||
|
||||
|
||||
$table->addAction(function ($row, $url) use ($moduleService) {
|
||||
$slug = $row['slug'];
|
||||
if ($moduleService->isActive($slug)) {
|
||||
@ -54,7 +54,7 @@ $table->addAction(function ($row, $url) use ($moduleService) {
|
||||
});
|
||||
|
||||
$table->addAction(function ($row, $url) use ($moduleService){
|
||||
if (!$moduleService->isKernelModule($row['slug'])){
|
||||
if ($moduleService->isShopModule($row['slug'])){
|
||||
if (!$moduleService->isLastVersion($row['slug'])) {
|
||||
$url = "$url/update/?slug=". $row['slug'];
|
||||
|
||||
@ -75,7 +75,7 @@ $table->addAction(function ($row) use ($moduleService){
|
||||
return false;
|
||||
});
|
||||
|
||||
if ($moduleService->isActive('module_shop_client')) {
|
||||
if ($moduleService->isActive('module_shop_client') && $moduleService->isServerAvailable()) {
|
||||
ModuleTabsWidget::create()->run();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user