Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/admin/resources/lang/en/productoption.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
'save-options' => [
'label' => 'Save Options',
],
'save-variants' => [
'label' => 'Save Variants',
],
'add-shared-option' => [
'label' => 'Add Shared Option',
'form' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="fi-ta-empty-state-icon-bg">
{{ \Filament\Support\generate_icon_html('lucide-shapes', size: \Filament\Support\Enums\IconSize::Large) }}
</div>
<h4 class="fi-ta-empty-state-heading">No Product Options Configured</h4>
<h4 class="fi-ta-empty-state-heading">{{ __('lunarpanel::productoption.widgets.product-options.options-list.empty.heading') }}</h4>
</div>
</div>
@endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public function addSharedOptionAction(): Action
->get();

return Action::make('addSharedOption')
->label(
__('lunarpanel::productoption.widgets.product-options.actions.add-shared-option.label')
)
->schema([
Shout::make('no_shared_components')
->content(
Expand Down Expand Up @@ -356,6 +359,9 @@ protected function mapOptionValuesToIds(array $values): array
public function saveVariantsAction(): Action
{
return Action::make('saveVariants')
->label(
__('lunarpanel::productoption.widgets.product-options.actions.save-variants.label')
)
->action(function () {
DB::beginTransaction();

Expand Down