Allow scouts to pre-scout matches using the app

Users can now select the new "pre-scouting" checkbox. That will bypass
the match list validation.

Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I35fed86b8107fc11a1335f73e679b1272d4da81b
diff --git a/scouting/www/entry/entry.component.ts b/scouting/www/entry/entry.component.ts
index 56ee122..290e2fb 100644
--- a/scouting/www/entry/entry.component.ts
+++ b/scouting/www/entry/entry.component.ts
@@ -129,6 +129,7 @@
   autoPhase: boolean = true;
   lastObject: ObjectType = null;
 
+  preScouting: boolean = false;
   matchStartTimestamp: number = 0;
 
   teamSelectionIsValid = false;
@@ -160,9 +161,9 @@
 
   // This gets called when the user changes something on the Init screen.
   // It makes sure that the user can't click "Next" until the information is
-  // valid.
+  // valid, or this is for pre-scouting.
   updateTeamSelectionValidity(): void {
-    this.teamSelectionIsValid = this.matchIsInMatchList();
+    this.teamSelectionIsValid = this.preScouting || this.matchIsInMatchList();
   }
 
   matchIsInMatchList(): boolean {
@@ -384,6 +385,7 @@
     SubmitActions.addSetNumber(builder, this.setNumber);
     SubmitActions.addCompLevel(builder, compLevelFb);
     SubmitActions.addActionsList(builder, actionsVector);
+    SubmitActions.addPreScouting(builder, this.preScouting);
     builder.finish(SubmitActions.endSubmitActions(builder));
 
     const buffer = builder.asUint8Array();