mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-14 15:37:53 +00:00
feat: set icon url on import
This commit is contained in:
parent
e427932dd0
commit
471340ac16
4 changed files with 73 additions and 14 deletions
|
|
@ -92,10 +92,14 @@ new class extends Component {
|
|||
try {
|
||||
$zipUrl = "https://usetrmnl.com/api/plugin_settings/{$recipeId}/archive";
|
||||
|
||||
$recipe = collect($this->recipes)->firstWhere('id', $recipeId);
|
||||
|
||||
$plugin = $pluginImportService->importFromUrl(
|
||||
$zipUrl,
|
||||
auth()->user(),
|
||||
preferredRenderer: config('services.trmnl.liquid_enabled') ? 'trmnl-liquid' : null
|
||||
null,
|
||||
config('services.trmnl.liquid_enabled') ? 'trmnl-liquid' : null,
|
||||
$recipe['icon_url'] ?? null
|
||||
);
|
||||
|
||||
$this->dispatch('plugin-installed');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue