Skip to content

Commit

Permalink
chore: Remove commented-out config download functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Feb 12, 2025
1 parent 8101efc commit 2fa247b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions app/Livewire/Project/Application/General.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,17 +442,17 @@ public function submit($showToaster = true)
}
}

public function downloadConfig()
{
$config = GenerateConfig::run($this->application, true);
$fileName = str($this->application->name)->slug()->append('_config.json');
dd($config);

return response()->streamDownload(function () use ($config) {
echo $config;
}, $fileName, [
'Content-Type' => 'application/json',
'Content-Disposition' => 'attachment; filename='.$fileName,
]);
}
// public function downloadConfig()
// {
// $config = GenerateConfig::run($this->application, true);
// $fileName = str($this->application->name)->slug()->append('_config.json');
// dd($config);

// return response()->streamDownload(function () use ($config) {
// echo $config;
// }, $fileName, [
// 'Content-Type' => 'application/json',
// 'Content-Disposition' => 'attachment; filename='.$fileName,
// ]);
// }
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
Save
</x-forms.button>

<x-forms.button wire:click="downloadConfig">
{{-- <x-forms.button wire:click="downloadConfig">
Download Config
</x-forms.button>
</x-forms.button> --}}
</div>
<div>General configuration for your application.</div>
<div class="flex flex-col gap-2 py-4">
Expand Down

0 comments on commit 2fa247b

Please sign in to comment.