You've already forked Atomcms-edit
Remove all auto-update functionality (commands, services, widgets, blades, translations)
This commit is contained in:
@@ -5,7 +5,6 @@ declare(strict_types=1);
|
||||
namespace App\Filament\Resources\Miscellaneous\AlertLogResource;
|
||||
|
||||
use App\Models\Miscellaneous\AlertLog;
|
||||
use App\Services\EmulatorUpdateService;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Notifications\Notification;
|
||||
use Filament\Resources\Resource;
|
||||
@@ -136,14 +135,12 @@ class AlertLogResource extends Resource
|
||||
->icon('heroicon-o-trash')
|
||||
->color('gray')
|
||||
->action(function () {
|
||||
$updateService = new EmulatorUpdateService;
|
||||
$result = $updateService->clearAllLogs();
|
||||
Cache::flush();
|
||||
AlertLog::truncate();
|
||||
Notification::make()
|
||||
->success()
|
||||
->title('🗑️ Alle Logs Geleegd!')
|
||||
->body($result['message'])
|
||||
->body('Alle logs zijn gewist.')
|
||||
->send();
|
||||
})
|
||||
->requiresConfirmation(),
|
||||
|
||||
Reference in New Issue
Block a user