Skip to content

Commit

Permalink
Merge pull request #95 from SwimResults/develop
Browse files Browse the repository at this point in the history
`Patch:` incidents: timeless; name extension; medal ceremony
  • Loading branch information
konrad2002 authored Jun 2, 2024
2 parents 6870ce3 + df219f6 commit 8f1fdc9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
<div class="time-container" *ngIf="incident.type === 'DURATION'">
<i>{{incident.getDurationString()}}</i>
</div>
<div class="time-container" *ngIf="incident.type === 'TIMELESS'">
<i>&nbsp;</i>
</div>
<div *ngIf="incident.type === 'EVENT'" class="dot"></div>
<div class="content-container {{incident.type === 'DURATION' ? 'container-duration' : 'container-event'}}">
<span class="name">{{'EVENT.LIST.INCIDENT.' + incident.name.toUpperCase() | translate}}</span>
<span class="name">
<span>{{'EVENT.LIST.INCIDENT.' + incident.name.toUpperCase() | translate}}</span>
<span>{{incident.name_extension}}</span>
</span>
</div>
</ng-container>
7 changes: 5 additions & 2 deletions src/app/core/model/meeting/incident.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import {createDate} from "../../function/date.functions";
export interface Incident {
_id: string;
meeting: string;
type: "EVENT" | "DURATION";
type: "EVENT" | "DURATION" | "TIMELESS";
name: string;
name_extension: string;
start: string;
end: string;
prev_event: number;
Expand All @@ -14,8 +15,9 @@ export interface Incident {
export class IncidentImpl {
_id: string;
meeting: string;
type: "EVENT" | "DURATION";
type: "EVENT" | "DURATION" | "TIMELESS";
name: string;
name_extension: string;
start: string;
end: string;
prev_event: number;
Expand All @@ -26,6 +28,7 @@ export class IncidentImpl {
this.meeting = data.meeting;
this.type = data.type;
this.name = data.name;
this.name_extension = data.name_extension;
this.start = data.start;
this.end = data.end;
this.prev_event = data.prev_event;
Expand Down
3 changes: 2 additions & 1 deletion src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"WARMUP": "Einschwimmen",
"JUDGES_MEETING": "Kampfrichtersitzung",
"TEAM_LEADER_MEETING": "Mannschaftsleitersitzung",
"BREAK": "Pause"
"BREAK": "Pause",
"CEREMONY": "Siegerehrung"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"WARMUP": "Warm-up",
"JUDGES_MEETING": "Judges Meeting",
"TEAM_LEADER_MEETING": "Team Leader Meeting",
"BREAK": "Break"
"BREAK": "Break",
"CEREMONY": "Medal ceremony"
}
}
},
Expand Down

0 comments on commit 8f1fdc9

Please sign in to comment.