mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-05-20 10:04:53 +00:00
🎨 UI: Add vote ribbon for board members to highlight pending voting decisions
This commit is contained in:
@@ -103,4 +103,9 @@ class ProjectProposal extends Model implements HasMedia
|
||||
{
|
||||
return $this->hasMany(Vote::class);
|
||||
}
|
||||
|
||||
public function hasVoteFrom(EinundzwanzigPleb $pleb): bool
|
||||
{
|
||||
return $this->votes->contains('einundzwanzig_pleb_id', $pleb->id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user