mirror of
https://github.com/brufdev/many-notes.git
synced 2026-05-05 08:59:54 -05:00
Add the note templates feature
This commit is contained in:
@@ -33,9 +33,12 @@ class AddNode extends Modal
|
||||
|
||||
public function add(): void
|
||||
{
|
||||
$this->form->create();
|
||||
$node = $this->form->create();
|
||||
$this->closeModal();
|
||||
$this->dispatch('node-updated');
|
||||
if ($node->parent_id == $this->form->vault->templates_node_id) {
|
||||
$this->dispatch('templates-refresh');
|
||||
}
|
||||
$message = $this->form->is_file ? __('File created') : __('Folder created');
|
||||
$this->dispatch('toast', message: $message, type: 'success');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user