scouting: Deduplicate action definitions in entry.component.ts
I found it tedious to keep the definitions up-to-date between the .fbs
file and the entry.component.ts file. This patch fixes the issue by
using the generated flatbuffer types everywhere.
I added a helper library to deal with `actionTakenType` properly.
Otherwise the user would have to deal with it manually.
Since Angular templates don't seem to allow manual type casting, I
created a pipe to do it for me.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I5f60e2d7b89978f40b5758bb8d04e800d6de230d
diff --git a/scouting/www/app/app.module.ts b/scouting/www/app/app.module.ts
index fdbf6fa..e23c2f3 100644
--- a/scouting/www/app/app.module.ts
+++ b/scouting/www/app/app.module.ts
@@ -4,6 +4,7 @@
import {ServiceWorkerModule} from '@angular/service-worker';
import {App} from './app';
+import {PipeModule} from '@org_frc971/scouting/www/pipes';
import {EntryModule} from '@org_frc971/scouting/www/entry';
import {MatchListModule} from '@org_frc971/scouting/www/match_list';
import {NotesModule} from '@org_frc971/scouting/www/notes';
@@ -27,6 +28,7 @@
EntryModule,
NotesModule,
MatchListModule,
+ PipeModule,
ShiftScheduleModule,
DriverRankingModule,
ViewModule,