Skip to content

Commit

Permalink
Fix mission name
Browse files Browse the repository at this point in the history
  • Loading branch information
oysand committed Oct 18, 2022
1 parent 6ce3d42 commit eb6cfef
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions backend/api/Controllers/MissionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ [FromBody] ScheduledMissionQuery scheduledMissionQuery

var scheduledMission = new Mission
{
Name = echoMission.Name,
Robot = robot,
EchoMissionId = scheduledMissionQuery.EchoMissionId,
MissionStatus = MissionStatus.Pending,
Expand Down
2 changes: 2 additions & 0 deletions backend/api/Database/Models/Mission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public class Mission
[Required]
public string Id { get; set; }

public string Name { get; set; }

public string AssetCode { get; set; }

[Required]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export function OngoingMissionCard({ mission }: MissionProps) {
}
return (
<StyledMissionCard variant="default" style={{ boxShadow: tokens.elevation.raised }} onClick={routeChange}>
<Typography variant="h6">INSPECTION</Typography>
<Typography>{mission.name}</Typography>
<Typography variant="h6">{mission.name}</Typography>
<HorisontalContent>
<MissionStatusDisplay status={mission.missionStatus} />
<MissionProgressDisplay />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function UpcomingMissionCard({ mission }: MissionProps) {
>
<HorizontalContent>
<Checkbox />
<Typography variant="h6">Mission name</Typography>
<Typography variant="h6">{mission.name}</Typography>
<MissionStartTimeDisplay mission={mission} />
<Typography>Tasks: {numberOfTasks}</Typography>
<MissionDurationDisplay mission={mission} />
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/models/Mission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export enum MissionStatus {

export interface Mission {
id: string
name?: string
name: string
assetCode?: string
robot: Robot
isarMissionId?: string
Expand Down

0 comments on commit eb6cfef

Please sign in to comment.