Submit route, fixes in col editor
This commit is contained in:
@@ -320,4 +320,17 @@ class TableEditController extends Controller
|
||||
|
||||
return $this->jsonResponse($resp, $code);
|
||||
}
|
||||
|
||||
/**
|
||||
* Submit the form
|
||||
*
|
||||
* @param Request $request
|
||||
* @param User $user
|
||||
* @param string $table
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function draftSubmit(Request $request, User $user, string $table)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ use Illuminate\Database\Eloquent\Collection;
|
||||
* @property-read string $draftSessionKey
|
||||
* @property-read string $draftDiscardRoute
|
||||
* @property-read string $draftUpdateRoute
|
||||
* @property-read string $draftSubmitRoute
|
||||
* @property-read User $owner
|
||||
* @property-read Table $parentTable
|
||||
* @property-read Table[]|Collection $forks
|
||||
@@ -141,6 +142,7 @@ class Table extends BaseModel
|
||||
case 'deleteRoute': return route('table.delete', $arg);
|
||||
case 'draftDiscardRoute': return route('table.draft-discard', $arg);
|
||||
case 'draftUpdateRoute': return route('table.draft-update', $arg);
|
||||
case 'draftSubmitRoute': return route('table.draft-submit', $arg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user