|
|
@@ -70,8 +70,6 @@ class DiskDataTable extends DataTable implements ClientArea
|
|
|
protected function loadHtml()
|
|
|
{
|
|
|
$this->addColumn((new Column('name'))->setSearchable(true, "string")->setOrderable('ASC'))
|
|
|
- ->addColumn((new Column('bus'))->setSearchable(true, "string")->setOrderable())
|
|
|
- ->addColumn((new Column('format'))->setSearchable(true)->setOrderable())
|
|
|
->addColumn((new Column('backup'))->setSearchable(true)->setOrderable())
|
|
|
->addColumn((new Column('bytes'))->setSearchable(true)->setOrderable());
|
|
|
}
|
|
|
@@ -84,20 +82,6 @@ class DiskDataTable extends DataTable implements ClientArea
|
|
|
return sl("lang")->abtr('Disk :id:');
|
|
|
}
|
|
|
|
|
|
- public function replaceFieldBus($key, $row)
|
|
|
- {
|
|
|
- return sl("lang")->tr($row[$key]);
|
|
|
- }
|
|
|
-
|
|
|
- public function replaceFieldFormat($key, $row)
|
|
|
- {
|
|
|
- if ($row[$key])
|
|
|
- {
|
|
|
- return $row[$key];
|
|
|
- }
|
|
|
- return "raw";
|
|
|
- }
|
|
|
-
|
|
|
public function replaceFieldBytes($key, $row)
|
|
|
{
|
|
|
return Format::convertBytes($row['bytes']);
|
|
|
@@ -133,9 +117,7 @@ class DiskDataTable extends DataTable implements ClientArea
|
|
|
// thurdata end
|
|
|
$data[] = [
|
|
|
"id" => $entity->getId(),
|
|
|
- "bus" => $entity->getId(),
|
|
|
"name" => $entity->getName(),
|
|
|
- "format" => $entity->getFormat(),
|
|
|
"backup" => $entity->getBackup(),
|
|
|
"size" => $entity->getSize(),
|
|
|
"bytes" => $entity->getBytes(),
|