Add an "Import match list" tab to the scouting web page
This patch adds a new tab to the scouting web page to import the match
list. You have to point the server at a config file with `--tba_config`.
See its `--help` for more information.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I606915a6cc5776fe183da41ab8b04b063f57dafd
diff --git a/scouting/www/app.ts b/scouting/www/app.ts
index f6247d3..285d306 100644
--- a/scouting/www/app.ts
+++ b/scouting/www/app.ts
@@ -1,8 +1,20 @@
import {Component} from '@angular/core';
+type Tab = 'Entry'|'ImportMatchList';
+
@Component({
selector: 'my-app',
templateUrl: './app.ng.html',
+ styleUrls: ['./common.css']
})
export class App {
+ tab: Tab = 'Entry';
+
+ tabIs(tab: Tab) {
+ return this.tab == tab;
+ }
+
+ switchTabTo(tab: Tab) {
+ this.tab = tab;
+ }
}