diff --git a/app/Livewire/Dashboard/DashboardConverter.php b/app/Livewire/Dashboard/DashboardConverter.php index 1c8e6fa..d72bf49 100644 --- a/app/Livewire/Dashboard/DashboardConverter.php +++ b/app/Livewire/Dashboard/DashboardConverter.php @@ -152,6 +152,25 @@ public function selectTargetFormat(string $targetFormat): void $this->step = 'settings'; } + public function continueFromSettings(): void + { + if ($this->currentFile === null || $this->selectedTargetFormat === null) { + $this->goToSettingsStep(); + + return; + } + + if (! $this->validateSettings()) { + $this->step = 'settings'; + + return; + } + + // Phase 8 stops at a convert placeholder. CreateConversionJobAction and + // the real conversion flow arrive in Phase 9. + $this->step = 'convert'; + } + public function validateSettings(): bool { $this->resetErrorBag(); diff --git a/resources/views/livewire/dashboard/dashboard-converter.blade.php b/resources/views/livewire/dashboard/dashboard-converter.blade.php index c793c18..9bca031 100644 --- a/resources/views/livewire/dashboard/dashboard-converter.blade.php +++ b/resources/views/livewire/dashboard/dashboard-converter.blade.php @@ -1,6 +1,11 @@
+ Ready to convert {{ strtoupper($file->extension) }} to {{ strtoupper($selectedTargetFormat) }} +
+Conversion will be available in Phase 9.
+