|
|
@@ -70,6 +70,8 @@ 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());
|
|
|
}
|
|
|
@@ -82,6 +84,20 @@ 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']);
|
|
|
@@ -117,7 +133,9 @@ 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(),
|