some fix
This commit is contained in:
@ -34,9 +34,9 @@ $table->addAction(function ($row, $url) use ($moduleService) {
|
||||
$btn = "<a class='btn btn-$btn_type' href='$url/deactivate/?slug=$slug' style='margin: 3px; width: 150px;' >$label</a>";
|
||||
|
||||
} else {
|
||||
$label = "Активировать";
|
||||
$label = "<i class='fa-regular fa-circle-check'></i>";
|
||||
$btn_type = "success";
|
||||
$btn = "<a class='btn btn-$btn_type' href='$url/activate/?slug=$slug' style='margin: 3px; width: 150px;' >$label</a>";
|
||||
$btn = "<a class='btn btn-$btn_type' href='$url/activate/?slug=$slug' style='margin: 3px;' >$label</a>";
|
||||
}
|
||||
|
||||
return $btn;
|
||||
@ -60,7 +60,7 @@ $table->addAction(function ($row, $url) use ($moduleService){
|
||||
return false;
|
||||
});
|
||||
|
||||
$table->addAction(function ($row, $url) use ($moduleService){
|
||||
$table->addAction(function ($row) use ($moduleService){
|
||||
$slug = $row['slug'];
|
||||
if (!$moduleService->isKernelModule($slug)){
|
||||
$label = "Удалить";
|
||||
@ -69,7 +69,6 @@ $table->addAction(function ($row, $url) use ($moduleService){
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
$table->create();
|
||||
|
||||
if ($moduleService->isActive('module_shop_client')) {
|
||||
|
Reference in New Issue
Block a user