mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
Set defaults for new builds
This commit is contained in:
parent
8126e77347
commit
0290d04d4e
|
@ -254,7 +254,15 @@ public async Task<ActionResult> viewVersionPage(int major, int minor, int page)
|
|||
}
|
||||
|
||||
[Route("add/"), Authorize]
|
||||
public ActionResult addBuild() { return View("editBuild"); }
|
||||
public ActionResult addBuild()
|
||||
{
|
||||
BuildModel b = new BuildModel()
|
||||
{
|
||||
SourceType = TypeOfSource.PrivateLeak,
|
||||
FlightLevel = LevelOfFlight.None
|
||||
};
|
||||
return View("editBuild", b);
|
||||
}
|
||||
|
||||
[Route("add/"), Authorize, HttpPost]
|
||||
public async Task<ActionResult> addBuild(BuildModel build)
|
||||
|
|
Loading…
Reference in New Issue
Block a user