Add a CANCELLED state for PIREPs
This commit is contained in:
@@ -9,11 +9,13 @@ class PirepState extends EnumBase {
|
|||||||
const IN_PROGRESS = 0;
|
const IN_PROGRESS = 0;
|
||||||
const PENDING = 1;
|
const PENDING = 1;
|
||||||
const ACCEPTED = 2;
|
const ACCEPTED = 2;
|
||||||
|
const CANCELLED = 3;
|
||||||
|
|
||||||
protected static $labels = [
|
protected static $labels = [
|
||||||
PirepState::REJECTED => 'system.pireps.state.rejected',
|
PirepState::REJECTED => 'system.pireps.state.rejected',
|
||||||
PirepState::IN_PROGRESS => 'system.pireps.state.in_progress',
|
PirepState::IN_PROGRESS => 'system.pireps.state.in_progress',
|
||||||
PirepState::PENDING => 'system.pireps.state.pending',
|
PirepState::PENDING => 'system.pireps.state.pending',
|
||||||
PirepState::ACCEPTED => 'system.pireps.state.accepted',
|
PirepState::ACCEPTED => 'system.pireps.state.accepted',
|
||||||
|
PirepState::CANCELLED => 'system.pireps.state.cancelled',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,10 +13,11 @@ return [
|
|||||||
|
|
||||||
'pireps' => [
|
'pireps' => [
|
||||||
'state' => [
|
'state' => [
|
||||||
'accepted' => 'Accepted',
|
'accepted' => 'Accepted',
|
||||||
'pending' => 'Pending',
|
'pending' => 'Pending',
|
||||||
'rejected' => 'Rejected',
|
'rejected' => 'Rejected',
|
||||||
'in_progress' => 'In Progress',
|
'in_progress' => 'In Progress',
|
||||||
|
'cancelled' => 'Cancelled',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user