feat: legend of status colors in assignment overview
This commit is contained in:
@@ -474,14 +474,20 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
return $this->availableDispositions === $this->dispositions->count();
|
||||
}
|
||||
|
||||
public function isUnstaffed(): bool
|
||||
{
|
||||
return 0 === $this->dispositions->count();
|
||||
}
|
||||
|
||||
public function isPartlyStaffed(): bool
|
||||
{
|
||||
return $this->availableDispositions > $this->dispositions->count()
|
||||
&& 0 === $this->applications->count();
|
||||
&& 0 < $this->dispositions->count();
|
||||
}
|
||||
|
||||
public function isStaffing(): bool
|
||||
{
|
||||
return 0 === $this->dispositions->count() && 0 < $this->applications->count();
|
||||
return $this->availableDispositions > $this->dispositions->count()
|
||||
&& 0 < $this->applications->count();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user