scouting: Clean up the code a tiny bit
Nothing really interesting. Just a few cleanup items that I saw. I'm
sure that there are plenty more.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I2764f8d8111e64affceab0131b263942362e391a
diff --git a/scouting/www/app/app.ts b/scouting/www/app/app.ts
index ab15ae5..1a70b6f 100644
--- a/scouting/www/app/app.ts
+++ b/scouting/www/app/app.ts
@@ -40,8 +40,6 @@
@ViewChild('block_alerts') block_alerts: ElementRef;
constructor() {
- console.log(`Using development mode: ${isDevMode()}`);
-
window.addEventListener('beforeunload', (e) => {
if (!unguardedTabs.includes(this.tab)) {
if (!this.block_alerts.nativeElement.checked) {
diff --git a/scouting/www/entry/entry.component.ts b/scouting/www/entry/entry.component.ts
index 8ede3a2..21fd474 100644
--- a/scouting/www/entry/entry.component.ts
+++ b/scouting/www/entry/entry.component.ts
@@ -132,6 +132,8 @@
@Input() compLevel: CompLevel = 'qm';
@Input() skipTeamSelection = false;
+ @ViewChild('header') header: ElementRef;
+
matchList: Match[] = [];
actionList: ActionT[] = [];
@@ -315,8 +317,6 @@
this.section = target;
}
- @ViewChild('header') header: ElementRef;
-
private scrollToTop() {
this.header.nativeElement.scrollIntoView();
}
@@ -327,7 +327,6 @@
for (const action of this.actionList) {
let actionOffset: number | undefined;
- console.log(action.type);
switch (action.type) {
case 'startMatchAction':
@@ -494,8 +493,8 @@
this.section = 'Success';
this.actionList = [];
- // Keep track of the position of the last robot, use to figure out what the next robot in the same position is.
-
+ // Keep track of the position of the last robot, use to figure out what
+ // the next robot in the same position is.
let lastTeamPos = '0';
for (const match of this.matchList) {
if (