Leite Programmvorschauen ueber die Queue ab und seede den Testbestand nicht erneut
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
295f784703
commit
57802dfe48
4 files changed
+51
-10
No files matched your search
@@ -25,6 +25,7 @@
|
||||
use App\Filament\Resources\Exercises\ExerciseResource;
|
||||
use App\Filament\Support\CatalogOptions;
|
||||
use App\Filament\Support\CatalogReading;
|
||||
use App\Jobs\DeriveThumbnail;
|
||||
use App\Models\User;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Facades\Filament;
|
||||
@@ -240,11 +241,7 @@ protected function handleRecordUpdate(Model $record, array $data): Model
|
||||
? (int) $data['editorial_content_kind_id']
|
||||
: null;
|
||||
}
|
||||
if (is_string($data['thumbnail_upload'] ?? null) && $data['thumbnail_upload'] !== '') {
|
||||
$record->thumbnail_path = $data['thumbnail_upload'];
|
||||
$record->thumbnail_error = null;
|
||||
$record->thumbnail_alt = $record->designation;
|
||||
}
|
||||
$thumbnail = is_string($data['thumbnail_upload'] ?? null) ? $data['thumbnail_upload'] : '';
|
||||
$record->save();
|
||||
if (array_key_exists('dimension_ids', $data)) {
|
||||
$this->syncDimensions($record, array_map(intval(...), $data['dimension_ids'] ?? []));
|
||||
@@ -285,6 +282,10 @@ protected function handleRecordUpdate(Model $record, array $data): Model
|
||||
} else {
|
||||
$this->savedTitle = 'Bezeichnung und Art sind gespeichert. Die Bausteine sind unverändert, deshalb gibt es keine neue Fassung.';
|
||||
}
|
||||
|
||||
if ($thumbnail !== '') {
|
||||
DeriveThumbnail::dispatch('komposition', $record->id, $thumbnail);
|
||||
}
|
||||
} catch (DomainRuleException $exception) {
|
||||
Notification::make()->title($exception->getMessage())->danger()->send();
|
||||
|
||||
|
||||
Reference in new issue
Block a user