authorize('update', $vault); $this->form->setVault($vault); } #[On('open-modal')] public function open(VaultNode $node): void { $this->authorize('update', $node->vault); $this->form->setNode($node); $this->openModal(); } public function edit(): void { $this->form->update(); $this->closeModal(); $this->dispatch('node-updated'); $this->dispatch('file-refresh', node: $this->form->node); } public function render() { return view('livewire.modals.editNode'); } }