mirror of
https://github.com/brufdev/many-notes.git
synced 2026-04-29 22:09:28 -05:00
Rename ProcessUploadedVaults action
This commit is contained in:
@@ -6,7 +6,7 @@ use ZipArchive;
|
||||
use App\Actions\GetPathFromVaultNode;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
class ProcessUploadedVaults
|
||||
class ProcessImportedVault
|
||||
{
|
||||
private $validExtensions = [
|
||||
'md',
|
||||
@@ -5,7 +5,7 @@ namespace App\Livewire\Modals;
|
||||
use Livewire\Attributes\On;
|
||||
use Livewire\WithFileUploads;
|
||||
use Livewire\Attributes\Validate;
|
||||
use App\Actions\ProcessUploadedVaults;
|
||||
use App\Actions\ProcessImportedVault;
|
||||
|
||||
class ImportVault extends Modal
|
||||
{
|
||||
@@ -27,7 +27,7 @@ class ImportVault extends Modal
|
||||
$this->validate();
|
||||
$fileName = $this->file->getClientOriginalName();
|
||||
$filePath = $this->file->getRealPath();
|
||||
(new ProcessUploadedVaults())->handle($fileName, $filePath);
|
||||
(new ProcessImportedVault())->handle($fileName, $filePath);
|
||||
$this->dispatch('vault-imported');
|
||||
$this->closeModal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user