scouting: Ask the user to reload after submitting match data

The current "Home" screen doesn't tell folks what to do. It's not
obvious that they have to reload the page at this point. This patch
changes the screen to ask the user to reload the page.

Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I88b7137eaace31c9cff36685992880cfb9d9eeda
diff --git a/scouting/scouting_test.ts b/scouting/scouting_test.ts
index 43423c1..8141cfa 100644
--- a/scouting/scouting_test.ts
+++ b/scouting/scouting_test.ts
@@ -155,7 +155,7 @@
 
     await element(by.buttonText('Submit')).click();
     await browser.wait(EC.textToBePresentInElement(
-        element(by.css('.header')), 'Home'));
+        element(by.css('.header')), 'Success'));
 
     // TODO(phil): Make sure the data made its way to the database correctly.
   });
diff --git a/scouting/www/entry/entry.component.ts b/scouting/www/entry/entry.component.ts
index 412306a..d06e117 100644
--- a/scouting/www/entry/entry.component.ts
+++ b/scouting/www/entry/entry.component.ts
@@ -10,7 +10,7 @@
 import SubmitDataScoutingResponse = submit_data_scouting_response.scouting.webserver.requests.SubmitDataScoutingResponse;
 import ErrorResponse = error_response.scouting.webserver.requests.ErrorResponse;
 
-type Section = 'Team Selection'|'Auto'|'TeleOp'|'Climb'|'Other'|'Review and Submit'|'Home'
+type Section = 'Team Selection'|'Auto'|'TeleOp'|'Climb'|'Other'|'Review and Submit'|'Success'
 type Level = 'NoAttempt'|'Failed'|'FailedWithPlentyOfTime'|'Low'|'Medium'|'High'|'Transversal'
 
 @Component({
@@ -117,8 +117,8 @@
             '/requests/submit/data_scouting', {method: 'POST', body: buffer});
 
         if (res.ok) {
-            // We successfully submitted the data. Go back to Home.
-            this.section = 'Home';
+            // We successfully submitted the data. Report success.
+            this.section = 'Success';
         } else {
             const resBuffer = await res.arrayBuffer();
             const fbBuffer = new ByteBuffer(new Uint8Array(resBuffer));
diff --git a/scouting/www/entry/entry.ng.html b/scouting/www/entry/entry.ng.html
index f24fea4..cae9d89 100644
--- a/scouting/www/entry/entry.ng.html
+++ b/scouting/www/entry/entry.ng.html
@@ -197,4 +197,9 @@
           <button class="btn btn-primary" (click)="nextSection()">Submit</button>
         </div>
     </div>
+
+    <div *ngSwitchCase="'Success'" id="success" class="container-fluid">
+        <h4>Success</h4>
+        <div>Please reload the page to submit more data.</div>
+    </div>
 </ng-container>