row undos

This commit is contained in:
2018-08-05 17:59:32 +02:00
parent a4103e7084
commit 06fb01d146
7 changed files with 102 additions and 29 deletions
+13 -1
View File
@@ -79,7 +79,19 @@ class TableEditController extends Controller
]);
}
// TODO other tab handlers
/** @noinspection PhpUnusedPrivateMethodInspection */
private function addRows(Changeset $changeset)
{
$columns = $changeset->fetchAndTransformColumns();
$rows = $changeset->getAddedRows(25);
return view('table.propose.add-rows', [
'changeset' => $changeset,
'table' => $changeset->table,
'columns' => collect($columns),
'rows' => $rows,
]);
}
public function draftUpdate(User $user, string $table, Request $request)
{