mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-03-23 19:08:41 +00:00
🔧 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user