🔧 Refactor Livewire tests and logic to use ProjectProposal model directly. Add support for new fields, such as accepted and sats_paid, in ProjectProposal. Update translations and improve test coverage.

This commit is contained in:
HolgerHatGarKeineNode
2026-03-23 17:32:30 +00:00
parent ddd2bf2b4b
commit 347082bbc8
4 changed files with 30 additions and 26 deletions

View File

@@ -27,9 +27,9 @@ new class extends Component {
#[Locked]
public bool $ownVoteExists = false;
public function mount($projectProposal): void
public function mount(ProjectProposal $projectProposal): void
{
$this->projectProposal = ProjectProposal::query()->where('slug', $projectProposal)->firstOrFail();
$this->projectProposal = $projectProposal;
if (NostrAuth::check()) {
$this->currentPubkey = NostrAuth::pubkey();
$this->isAllowed = true;